jjb-lc-designable
Version:
基于alibaba-designable源码二次封装的表单设计器。
47 lines (44 loc) • 965 B
text/typescript
import { ISchema } from 'jjb-lc-formily/react'
export const FormTab: ISchema & { TabPane?: ISchema } = {
type: 'object',
properties: {
animated: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
centered: {
type: 'boolean',
'x-decorator': 'FormItem',
'x-component': 'Switch',
},
size: {
type: 'string',
enum: ['large', 'small', 'default', null],
'x-decorator': 'FormItem',
'x-component': 'Select',
'x-component-props': {
defaultValue: 'default',
},
},
type: {
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Radio.Group',
'x-component-props': {
defaultValue: 'line',
optionType: 'button',
},
},
},
}
FormTab.TabPane = {
type: 'object',
properties: {
tab: {
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
},
}