UNPKG

@wufengteam/wform

Version:

@wufengteam/wform

173 lines 3.98 kB
var config = { icon: 'TreeSelect', label: 'Api查询', type: 'Api', platform: 'pc', groupsName: '关联组件', compType: 2, props: { name: 'Api查询', buttonName: '查询', isView: false }, engineApi: ['customEngineApi.callRhinEngine', 'customEngineApi.callSqlService', 'customEngineApi.callInnerService', 'customEngineApi.callStdService', 'customEngineApi.test'], todoProps: { labelCol: { label: '标题占比', type: 'FormItemLabel', groupsName: '基础', props: { dependProps: { noShow: true } } }, wrapperCol: { label: '标题占比', type: 'FormItemLabel', groupsName: '基础', props: { dependProps: { noShow: true } } }, // 解决复制黏贴报 [组件属性]: 单行文本组件不可配置额外的fieldName字段。 fieldName: { label: '字段编码', type: 'Input', props: { dependProps: { noShow: true } } }, name: { label: '标题', type: 'Input', groupsName: '基础', istodoBind: false, props: { maxLength: 20, showCount: true } }, fieldNameAlias: { label: '字段编码', type: 'FieldNameAlias', groupsName: '基础', props: { required: true, tooltipText: '编码仅支持字母、数字、下划线,不能都是数字,不能都是下划线,必须是字母开头,但不能以sys开头,不能是数据库关键字' } }, buttonName: { label: '按钮名称', type: 'Input', groupsName: '基础', istodoBind: false, props: { maxLength: 8 } }, apiObject: { label: '调用Api', type: 'ApiObject', groupsName: '服务设置', istodoBind: false, props: { required: true } }, apiParams: { label: '输入参数', type: 'ApiParams', groupsName: '服务设置', istodoBind: false, props: {} }, apiRespond: { label: '输出参数', type: 'ApiRespond', groupsName: '服务设置', istodoBind: false, props: {} }, apiOptions: { label: '下拉值设置', type: 'ApiOptions', groupsName: '服务设置', istodoBind: false, props: { tooltipText: '下拉值设置在表单中仅用于选择,表单提交时,下拉值不进行保存' } }, selfSpan: { label: '列占比', type: 'ColSpan', groupsName: 'PC设置', istodoBind: false }, isView: { label: '是否是子表单', type: 'Input', props: { dependProps: { noShow: true } } }, titleTip: { label: '标题提示', type: 'RadioButton', groupsName: 'PC设置', props: { options: [{ title: '无', value: 'notext' }, { title: '文本', value: 'text' }], defaultValue: 'notext' } }, tipIcon: { label: '提示图标', type: 'ChooseIcon', groupsName: 'PC设置', props: { visibleFlag: 'titleTip', visibleFlagValue: ['text'], tabs: ['常用图标', '线框风格', '实底风格'] } }, tipLocation: { label: '提示位置', type: 'RadioButton', groupsName: 'PC设置', props: { options: [{ title: '标题前', value: 'before' }, { title: '标题后', value: 'after' }], defaultValue: 'after', visibleFlag: 'titleTip', visibleFlagValue: ['text'] } }, tipContent: { label: '提示内容', type: 'Input', groupsName: 'PC设置', props: { visibleFlag: 'titleTip', visibleFlagValue: ['text'] } } } }; export default config;