tachybase_todo/docs/components/collection-fields/icon.md

27 lines
442 B
Markdown
Raw Normal View History

2021-10-31 11:35:11 +08:00
# 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,
},
};
```