You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/icon/index.zh-CN.md

15 lines
428 B

## API
由于图标字体本质上还是文字,可以使用 `style``class` 设置图标的大小和颜色。
````html
<a-icon type="question" style="font-size: 16px, color: #08c" />
````
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| spin | 是否有旋转动画 | boolean | false |
| style | 设置图标的样式,例如 fontSize 和 color | object | - |
| type | 图标类型 | string | - |