import { initial } from 'lodash'; import snippets from './snippets'; export default { componentName: 'AnfaModel', title: '模型渲染', category: '通用', group: '精选组件', snippets, props: [ { name: 'table_name', title: { label: '模型所在表', tip: '模型所在表,即schema所在表,会通过该表+field_name获取schema' }, required: true, propType: 'string', }, { name: 'sys_id', title: { label: 'sys_id', tip: '模型所在表的sys_id,可以用${}取值,比如url有参数sys_id,则可以${sys_id}获取,如果是渲染某个详情,则会把某个表所有数据传递进去进行解析,也可以通过${fieldName}取值' }, required: true, propType: 'string', }, { name: 'field_name', title: { label: 'field_name', tip: '模型所在表的field_name,默认为schema' }, required: true, defaultValue: 'schema', initialValue: 'schema', propType: 'string', } ], configure: { component: { isContainer: true }, supports: { style: true }, }, };