| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- import { FormSchema } from '/@/components/Form';
- import { radioBoolean } from '/@/utils/filters';
- export const dataFormSchema: FormSchema[] = [
- {
- field: 'PlainTitle',
- component: 'PlainTitle',
- defaultValue: '检测时间',
- colProps: {
- span: 24,
- },
- },
- // {
- // field: 'PlainText',
- // component: 'PlainText',
- // label: '检测时间',
- // defaultValue: '2023-12-12 12:12:12',
- // colProps: {
- // span: 24,
- // },
- // },
- {
- field: 'configName',
- label: '参数名称',
- labelColor: '#818694',
- component: 'Input',
- componentProps: {
- placeholder: '请输入参数名称',
- extra: '123123',
- },
- },
- {
- field: 'configName1',
- label: '参数名称',
- labelColor: '#818694',
- component: 'Input',
- componentProps: {
- placeholder: '请输入参数名称',
- extra: '123123',
- },
- },
- {
- field: 'configName22',
- label: '参数名称',
- labelColor: '#818694',
- component: 'Input',
- componentProps: {
- placeholder: '请输入参数名称',
- extra: '123123',
- },
- },
- {
- field: 'configKey',
- label: '参数键名',
- labelColor: '#818694',
- subLabel: '测试',
- subLabelColor: '#FF5D39',
- component: 'Input',
- required: true,
- componentProps: {
- placeholder: '请输入参数键名',
- // style: { width: '200px' },
- },
- },
- {
- field: 'configValue',
- label: '参数键值',
- component: 'InputNumberGroup',
- componentProps: ({ formModel }) => {
- return {
- options: [
- { min: 0, max: 200, placeholder: '最小值 0', field: 'min' },
- { min: 0, max: 200, placeholder: '最大值 200', field: 'max' },
- ],
- onChange: e => {
- return (formModel['configValue'] = e);
- },
- };
- },
- },
- {
- field: 'sort',
- label: '排序',
- component: 'InputNumber',
- required: true,
- defaultValue: '1',
- componentProps: {
- placeholder: '请输入排序',
- min: 1,
- },
- },
- {
- field: 'sysInner',
- label: '系统内置',
- component: 'RadioGroup',
- componentProps: {
- options: radioBoolean,
- disabled: true,
- },
- defaultValue: '1',
- },
- // {
- // field: 'disable',
- // label: '状态',
- // component: 'RadioGroup',
- // required: true,
- // componentProps: {
- // options: radioSwitch,
- // },
- // defaultValue: '0',
- // },
- {
- label: '备注',
- field: 'remark',
- component: 'InputTextArea',
- componentProps: {
- placeholder: '请输入备注',
- },
- },
- ];
|