jjb-lc-designable
Version:
基于alibaba-designable源码二次封装的表单设计器。
41 lines (39 loc) • 859 B
text/typescript
import { ISchema } from 'jjb-lc-formily/react'
export const Rate: ISchema = {
type: 'object',
properties: {
allowClear: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
'x-component-props': {
defaultChecked: true,
},
},
count: {
type: 'number',
'x-decorator': 'FormItem',
'x-component': 'NumberPicker',
'x-component-props': {
defaultValue: 5,
},
},
allowHalf: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
tooltips: {
'x-decorator': 'FormItem',
'x-component': 'ValueInput',
'x-component-props': {
include: ['EXPRESSION'],
},
},
autoFocus: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
},
}