57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
|
|
export const schema = {
|
|
type: 'void',
|
|
name: 'action1',
|
|
// title: 'ModalForm',
|
|
'x-component': 'Action',
|
|
'x-component-props': {
|
|
type: 'primary',
|
|
icon: 'DatabaseOutlined',
|
|
},
|
|
properties: {
|
|
modal1: {
|
|
type: 'void',
|
|
title: '对话框标题',
|
|
'x-decorator': 'Form',
|
|
'x-component': 'Action.Modal',
|
|
properties: {
|
|
title: {
|
|
type: 'string',
|
|
title: '数据表名称',
|
|
required: true,
|
|
'x-decorator': 'FormItem',
|
|
'x-component': 'Input',
|
|
},
|
|
fields: {
|
|
type: 'array',
|
|
title: '字段',
|
|
'x-decorator': 'FormItem',
|
|
'x-component': 'DatabaseField',
|
|
default: [
|
|
{
|
|
id: 1,
|
|
interface: 'string',
|
|
dataType: 'string',
|
|
name: 'title',
|
|
ui: {
|
|
title: '标题',
|
|
},
|
|
},
|
|
{
|
|
id: 2,
|
|
dataType: 'text',
|
|
interface: 'textarea',
|
|
name: 'content',
|
|
ui: {
|
|
title: '内容',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default schema;
|