Icon
所有可用 Icon
icon 的 name 属性使用前缀表示用三方库图标,目前支持 1 个产品图标库、 2 个三方图标库和直接使用 emoji 图标
home表示使用产品图标库的home图标;oct:accessibility表示使用 octicons 的accessibility图标;ant:account-book-outlined表示使用 ant design icons 的ccount-book-outlined图标,ant 的所有 outlined 和 filled 类型的图标均支持;😀表示直接使用 emoji.
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | 组件的 className | |
| style | object | 组件的 style | ||
| name | string | Icon 的名字 | ||
| size | number | Icon 的尺寸 | ||
| color | string | 'currentColor' | Icon 的颜色 |
所有其余 componentsProps 将会被传给组件根元素(svg)。
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |