# 8.14 标签(Taged)
标签组件,用于展示标签信息
# 基础用法
<template>
<dof-taged value="标签"></dof-taged>
</template>
1
2
3
2
3
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
value | String/Number | N | 测试测试 | 标签文本 |
type | String | N | solid | 标签类型,支持 solid、hollow、special、image |
tag-color | String | N | #ff5000 | 标签颜色 |
font-color | String | N | '' | 字体颜色 |
special-icon | String | N | '' | 特殊图标 |
img | String | N | '' | 图片地址 |
need-dark-mode | Boolean | N | false | 是否启用 M-dark/T-dark 内置暗黑适配 |
isRTL | Boolean | N | false | 是否启用 RTL(从右到左)布局;默认关闭 ^2.5.10 |
设置 :need-dark-mode="true" 可启用内置暗黑配色,主题初始化与构建配置见 接入说明。
颜色属性为空时使用内置配色;业务显式颜色和样式覆盖优先于默认配色,关闭暗黑适配后仍有效。
fontColor 优先;tagColor 品牌色保留原色。