import { FormSchema } from '/@/components/Table';

export const typeFormSchema: FormSchema[] = [
  {
    field: 'typename',
    label: '类型名称',
    component: 'Input',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入类型名称',
    },
  },
  {
    field: 'typecode',
    label: '类型代码',
    component: 'Input',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入用户名类型代码',
    },
  },
  {
    field: 'displayorder',
    label: '显示顺序',
    component: 'InputNumber',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
    },
  },
];
export const parameterFormSchema: FormSchema[] = [
  {
    field: 'parametername',
    label: '参数名称',
    component: 'Input',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入参数名称',
    },
  },
  {
    field: 'parametercode',
    label: '参数代码',
    component: 'Input',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入参数代码',
    },
  },
  {
    field: 'abbreviation',
    label: '参数简称',
    component: 'Input',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入参数简称',
    },
  },
  {
    field: 'unit',
    label: '参数单位',
    component: 'Input',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入参数单位',
    },
  },
  {
    field: 'range',
    label: '量程',
    component: 'InputGroup',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入range',
    },
  },
  {
    field: 'frequency',
    label: '采集频率',
    component: 'InputNumber',
    required: true,
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
    },
  },
  {
    field: 'display',
    label: '是否显示',
    component: 'Switch',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
    },
  },
  {
    field: 'displayorder',
    label: '显示顺序',
    component: 'InputNumber',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入range',
    },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'Input',
    colProps: { span: 20 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入备注',
    },
  },
];
