#header-mark#
Label 标签
标签组件
基础用法
在组件旁边自定义描述
自定义样式
您可以自定义按钮的颜色。
使用 style 属性额外配置样式:
background设置背景颜色,可使用#ffffff、blue等和css兼容的形式。description-width设置距离,可使用px、%等形式。font-family:标签文字字体font-size:标签文字大小font-style:标签文字样式font-variant:reffont-weight:标签文字字重text-color:标签文字颜色text-decoration:标签文字上的装饰性线条外观。 ref
API
属性
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| v-model/value | 绑定值,标签文本 | str | — |
| style | 自定义css样式 | str | - |
TIP
style 支持的其它css属性
Sizes相关
- height
- width
- max_height
- max_width
- min_height
- min_width
Display相关
- visibility
- display
- overflow
Box model相关
- border
- margin
- padding
Positioning相关
- top
- left
- bottom
- right
方法
| 属性名 | 说明 | 类型 |
|---|
src/examples/ipywui/component/label