jjb-lc-designable
Version:
基于alibaba-designable源码二次封装的表单设计器。
39 lines (36 loc) • 816 B
text/typescript
import { ISchema } from 'jjb-lc-formily/react'
export const Radio: ISchema & { Group?: ISchema } = {
type: 'object',
properties: {
autoFocus: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
},
}
Radio.Group = {
type: 'object',
properties: {
optionType: {
type: 'string',
enum: ['default', 'button'],
'x-decorator': 'FormItem',
'x-component': 'Radio.Group',
'x-component-props': {
defaultValue: 'default',
optionType: 'button',
},
},
buttonStyle: {
type: 'string',
enum: ['outline', 'solid'],
'x-decorator': 'FormItem',
'x-component': 'Radio.Group',
'x-component-props': {
defaultValue: 'outline',
optionType: 'button',
},
},
},
}