tachybase_todo/docs/components/collection-fields/icon.md
2021-10-31 11:35:11 +08:00

27 lines
442 B
Markdown

# Icon - 图标
## Interface
```ts
export const icon: FieldOptions = {
name: 'icon',
type: 'object',
group: 'basic',
order: 8,
title: '图标',
default: {
dataType: 'string',
// name,
uiSchema: {
type: 'string',
// title,
'x-component': 'IconPicker',
'x-decorator': 'FormItem',
'x-designable-bar': 'IconPicker.DesignableBar',
},
},
properties: {
...defaultProps,
},
};
```