2021-12-29 16:44:43 +00:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
2022-02-05 21:20:07 +00:00
|
|
|
::: title 基本介绍
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: describe 它们本身细小而并不显眼,但掺杂在其它元素中就显得尤为突出了。页面往往因徽章的陪衬,而显得十分和谐。
|
|
|
|
:::
|
|
|
|
|
2021-10-25 17:13:23 +00:00
|
|
|
::: title 基础使用
|
2021-10-19 16:17:51 +00:00
|
|
|
:::
|
|
|
|
|
2022-02-01 15:26:28 +00:00
|
|
|
::: demo 使用 `lay-badge` 标签, 创建徽章
|
2021-09-27 08:42:13 +00:00
|
|
|
|
|
|
|
<template>
|
2021-09-30 05:54:04 +00:00
|
|
|
<lay-badge type="dot"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="orange"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="green"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="cyan"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="blue"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="black"></lay-badge>
|
|
|
|
<lay-badge type="dot" theme="gray"></lay-badge>
|
2021-10-03 23:41:59 +00:00
|
|
|
<lay-badge >赤</lay-badge>
|
|
|
|
<lay-badge theme="orange">橙</lay-badge>
|
|
|
|
<lay-badge theme="green">绿</lay-badge>
|
|
|
|
<lay-badge theme="cyan">青</lay-badge>
|
|
|
|
<lay-badge theme="blue">蓝</lay-badge>
|
|
|
|
<lay-badge theme="black">黑</lay-badge>
|
|
|
|
<lay-badge theme="gray">灰</lay-badge>
|
2021-09-30 05:54:04 +00:00
|
|
|
<lay-badge type="rim">6</lay-badge>
|
|
|
|
<lay-badge type="rim">Hot</lay-badge>
|
2021-09-27 08:42:13 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-10-01 10:20:41 +00:00
|
|
|
:::
|
|
|
|
|
2022-01-09 17:17:03 +00:00
|
|
|
::: title Badge 属性
|
2021-10-13 02:19:38 +00:00
|
|
|
:::
|
2021-10-12 10:00:09 +00:00
|
|
|
|
2021-11-07 07:55:08 +00:00
|
|
|
::: table
|
|
|
|
|
2022-03-17 09:08:31 +00:00
|
|
|
| 属性 | 描述 | 可选值 |
|
2021-10-12 03:30:07 +00:00
|
|
|
| ----- | ---- | --------------------------------------------- |
|
|
|
|
| type | 类型 | `dot` `rim` |
|
|
|
|
| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
|
2021-11-07 07:55:08 +00:00
|
|
|
|
2021-11-07 07:56:24 +00:00
|
|
|
:::
|
2021-12-07 08:06:36 +00:00
|
|
|
|
2022-01-09 17:17:03 +00:00
|
|
|
::: title Badge 插槽
|
2021-12-07 08:06:36 +00:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: table
|
|
|
|
|
|
|
|
| 插槽 | 描述 | 备注 |
|
|
|
|
| ----- | ---- | --------------------------------------------- |
|
|
|
|
| default | 默认 | 非 `dot` 可用 |
|
|
|
|
|
|
|
|
:::
|
2021-12-15 16:00:45 +00:00
|
|
|
|
2022-03-29 23:44:37 +00:00
|
|
|
|
2022-01-12 06:19:06 +00:00
|
|
|
|
|
|
|
::: previousNext badge
|
2021-12-15 16:00:45 +00:00
|
|
|
:::
|