import {FormProps, FormSchema} from '/@/components/Form'; import {BasicColumn} from '/@/components/Table'; export const searchFormSchema: FormSchema[] = [ { field: 'name', label: '名称', component: 'Input', }, { field: 'type', label: '类型', component: 'Input', }, { field: 'value', label: '值', component: 'Input', }, ]; export const columns: BasicColumn[] = [ { dataIndex: 'name', title: '名称', componentType: 'input', align: 'left', sorter: false, }, { dataIndex: 'type', title: '类型', componentType: 'input', align: 'left', sorter: false, }, { dataIndex: 'value', title: '值', componentType: 'input', align: 'left', sorter: false }, ]; //表单事件 export const formEventConfigs = { 0: [ { type: 'circle', color: '#2774ff', text: '开始节点', icon: '#icon-kaishi', bgcColor: '#D8E5FF', isUserDefined: false, }, { color: '#F6AB01', icon: '#icon-chushihua', text: '初始化表单', bgcColor: '#f9f5ea', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 1: [ { color: '#B36EDB', icon: '#icon-shujufenxi', text: '获取表单数据', detail: '(新增无此操作)', bgcColor: '#F8F2FC', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 2: [ { color: '#F8625C', icon: '#icon-jiazai', text: '加载表单', bgcColor: '#FFF1F1', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 3: [ { color: '#6C6AE0', icon: '#icon-jsontijiao', text: '提交表单', bgcColor: '#F5F4FF', isUserDefined: false, nodeInfo: {processEvent: []}, }, ], 4: [ { type: 'circle', color: '#F8625C', text: '结束节点', icon: '#icon-jieshuzhiliao', bgcColor: '#FFD6D6', isLast: true, isUserDefined: false, }, ], }; export const formProps: FormProps = { labelCol: {span: 3, offset: 0}, labelAlign: 'right', layout: 'horizontal', size: 'default', schemas: [ { key: 'f3a754603cf54ea98d8a05eee8fbb1ea', field: 'name', label: '名称', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入名称', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: true, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: 'fb6f3446078f47468407d8514614f5f0', field: 'type', label: '类型', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入类型', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: false, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, { key: 'd1d2c89ec84b4f039be9debce7bdaa88', field: 'value', label: '值', type: 'input', component: 'Input', colProps: {span: 24}, defaultValue: '', componentProps: { width: '100%', span: '', defaultValue: '', labelWidthMode: 'fix', labelFixWidth: 120, responsive: true, respNewRow: false, placeholder: '请输入值', maxlength: null, prefix: '', suffix: '', addonBefore: '', addonAfter: '', disabled: false, allowClear: false, showLabel: true, required: false, rules: [], events: {}, isSave: false, isShow: true, scan: false, style: {width: '100%'}, }, }, ], showActionButtonGroup: false, buttonLocation: 'center', actionColOptions: {span: 24}, showResetButton: false, showSubmitButton: false, hiddenComponent: [], };