图标组件
- Source:
Members
(static, constant) Theme :String
- Source:
Properties:
Name | Type | Description |
---|---|---|
DEFAULT |
String | 默认 |
SUCCESS |
String | 绿色 |
WARNING |
String | 橙色 |
DANGER |
String | 红色 |
INFO |
String | 灰色 |
PRIMARY |
String | 品牌色 |
Theme 主题枚举
Type:
- String
(inner) props
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string |
<optional> |
图标名称,className 支持 Element 和IconFont 和 svg组件 |
svg |
Boolean |
<optional> |
是否是svg图标 |
svgProps |
Object |
<optional> |
svg组件配置选项,属性:{viewBox, width, height, fill, class} |
theme |
Theme |
<optional> |
主题颜色,可选值:primary、success、warning、danger、info |
属性参数
(inner) slots
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
default |
string |
<optional> |
默认插槽,可以定义svg |
插槽
Events
click
- Source:
点击时触发