标签 Tag
基本标签
三种尺寸
填充主题
可以手动关闭
自定义背景色和文本颜色
API
Tag Props
参数名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 标签的类型(与 V3Button 大体相同) | string | primary/success/danger/warning/info | primary |
closeable | 是否可关闭标签 | boolean | false | |
plain | 是否为朴素标签(与 V3Button 相同) | boolean | true | |
size | 标签尺寸 | string | small/medium/large | medium |
backgroundColor | 自定义标签的背景色 | string | ||
color | 自定义标签的文字颜色 | string | ||
borderColor | 自定义标签的边框颜色 | string | ||
animation | 是否开启动画 | boolean | true |
Tag Events
事件名 | 说明 | 回调参数 |
---|---|---|
close | 关闭时触发 |
Tag Slots
插槽名 | 说明 | 子标签 |
---|---|---|
default | 默认插槽 |