66 lines
1.6 KiB
Markdown
66 lines
1.6 KiB
Markdown
::: anchor
|
|
:::
|
|
|
|
::: title 基础使用
|
|
:::
|
|
|
|
::: demo
|
|
|
|
<template>
|
|
<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>
|
|
<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>
|
|
<lay-badge type="rim">6</lay-badge>
|
|
<lay-badge type="rim">Hot</lay-badge>
|
|
</template>
|
|
|
|
<script>
|
|
import { ref } from 'vue'
|
|
|
|
export default {
|
|
setup() {
|
|
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
:::
|
|
|
|
::: title 徽章属性
|
|
:::
|
|
|
|
::: table
|
|
|
|
| 属性 | 描述 | 可选值 |
|
|
| ----- | ---- | --------------------------------------------- |
|
|
| type | 类型 | `dot` `rim` |
|
|
| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
|
|
|
|
:::
|
|
|
|
::: title 徽章插槽
|
|
:::
|
|
|
|
::: table
|
|
|
|
| 插槽 | 描述 | 备注 |
|
|
| ----- | ---- | --------------------------------------------- |
|
|
| default | 默认 | 非 `dot` 可用 |
|
|
|
|
:::
|
|
|
|
::: comment
|
|
::: |