import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types' const FormMeta: IPublicTypeComponentMetadata = { group: '低代码组件', componentName: 'Form', title: '表单', docUrl: '', screenshot: '', devMode: 'proCode', category: '信息输入', npm: { package: '@dckj-npm/dc-material', version: '0.1.148', exportName: 'Form', main: 'src\\index.tsx', destructuring: true, subName: '', }, configure: { props: [ { title: '表单', name: 'name', setter: { componentName: 'SetterFormBind', props: { attributes: [ { label: '表单列项', value: 'dataList', children: [ { label: '唯一标识', value: 'key' }, { label: '字段名称', value: 'columnComment' }, { label: '数据库字段名', value: 'columnName' }, { label: '字段长度', value: 'columnSize' }, { label: '字段类型', value: 'columnType' }, { label: '控件类型', value: 'columnKeyType' }, { label: '控件类型', value: 'columnKeyTypeEnum' }, { label: '是否只读', value: 'isOnlyRead' }, { label: '是否必填', value: 'isRequired' }, { label: '默认值', value: 'defaultValue' }, ], }, ], }, }, }, ], supports: { style: true, }, component: {}, }, } const snippets: IPublicTypeSnippet[] = [ { title: '表单', screenshot: '', schema: { componentName: 'Form', props: {}, }, }, ] export default { ...FormMeta, snippets, }