export const modalConfig = {
  formItems: [
    {
      field: 'category',
      type: 'hideType',
    },
    {
      field: 'parentId',
      type: 'elCascader',
      label: '上级类型',
      placeholder: '请选择上级类型',
      options:[],
      required: false,
    },
    {
      field: 'typeName',
      type: 'input',
      label: '类型名称',
      placeholder: '请输入类型名称',
      required: true,
      rules: [{
        max: 10,
        message: '长度不能超过10',
      }],
    },
    {
      field: 'typeCode',
      type: 'input',
      label: '类型编码',
      placeholder: '请输入类型编码',
      required: true,
    },
    {
      field: 'typeOrder',
      type: 'inputNumber',
      label: '显示排序',
      placeholder: ''
    },
  ],
  colLayout: { span: 24 },
  itemStyle: {},
  title: '',
  editTitle: '',
  subimitLoding: false, // 主动更新数据
}
