UNPKG

jjb-lc-designable

Version:

基于alibaba-designable源码二次封装的表单设计器。

37 lines (35 loc) 863 B
import { GlobalRegistry } from 'jjb-lc-designable/core' import { ISchema } from 'jjb-lc-formily/react' export const Card: ISchema & { Addition?: ISchema } = { type: 'object', properties: { title: { type: 'string', 'x-decorator': 'FormItem', 'x-component': 'Input', }, extra: { type: 'string', 'x-decorator': 'FormItem', 'x-component': 'Input', }, type: { type: 'boolean', enum: GlobalRegistry.getDesignerMessage('settings.cardTypes'), 'x-decorator': 'FormItem', 'x-component': 'Radio.Group', 'x-component-props': { defaultValue: '', optionType: 'button', }, }, bordered: { type: 'boolean', 'x-decorator': 'FormItem', 'x-component': 'Switch', 'x-component-props': { defaultChecked: true, }, }, }, }