2021-12-30 00:44:43 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 基础使用
|
2021-10-20 00:17:51 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-27 16:42:13 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2021-09-30 13:54:04 +08: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-04 07:41:59 +08: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 13:54:04 +08:00
|
|
|
<lay-badge type="rim">6</lay-badge>
|
|
|
|
<lay-badge type="rim">Hot</lay-badge>
|
2021-09-27 16:42:13 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-10-01 18:20:41 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 徽章属性
|
2021-10-13 10:19:38 +08:00
|
|
|
:::
|
2021-10-12 18:00:09 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-12-07 16:06:36 +08:00
|
|
|
| 属性 | 描述 | 可选值 |
|
2021-10-12 11:30:07 +08:00
|
|
|
| ----- | ---- | --------------------------------------------- |
|
|
|
|
| type | 类型 | `dot` `rim` |
|
|
|
|
| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
|
2021-11-07 15:55:08 +08:00
|
|
|
|
2021-11-07 15:56:24 +08:00
|
|
|
:::
|
2021-12-07 16:06:36 +08:00
|
|
|
|
|
|
|
::: title 徽章插槽
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: table
|
|
|
|
|
|
|
|
| 插槽 | 描述 | 备注 |
|
|
|
|
| ----- | ---- | --------------------------------------------- |
|
|
|
|
| default | 默认 | 非 `dot` 可用 |
|
|
|
|
|
|
|
|
:::
|
2021-12-16 00:00:45 +08:00
|
|
|
|
2021-12-16 17:57:59 +08:00
|
|
|
::: comment
|
2021-12-16 00:00:45 +08:00
|
|
|
:::
|