Skip to content
On this page

Icon 组件

Icon 组件用于显示图标。

Props

属性名类型默认值描述
namestring-图标的名称。
size'tiny' | 'small' | 'medium' | 'large' | 'huge''medium'图标的尺寸。
colorstring-图标的颜色。
bgColorstring-图标的背景颜色。
type'none' | 'default' | 'primary' | 'secondary' | 'warning' | 'info''default'图标的类型。
textType'default' | 'primary' | 'secondary' | 'warning' | 'info''default'图标文字的类型。
textColorstring-图标文字的颜色。
shape'circle' | 'square''circle'图标的形状。
borderbooleanfalse是否带有边框。
labelPosition'top' | 'right' | 'bottom' | 'left''bottom'标签位置。
shadowbooleanfalse是否带有阴影。
labelstring-图标的标签。

插槽

组件没有提供插槽。