export const modalConfig = {
  formItems: [
    {
      field: 'title',
      type: 'input',
      label: '标题',
      placeholder: '请输入类型名称',
      required: true,
      rules: [{
        max: 20,
        message: '长度不能超过20',
      }],
    },
    {
      field: 'label', //int
      type: 'select',
      label: '标签',
      placeholder: '请选择标签',
      options: []
    },
    {
      field: 'keywords',
      type: 'input',
      label: '关键字',
      placeholder: '请输入关键字',
      required: true,
      rules: [{
        max: 10,
        message: '长度不能超过10',
      }],
    },
    {
      field: 'category', //int
      type: 'select',
      label: '知识分类',
      placeholder: '请选择知识分类',
      options: []
    },
    {
      field: 'directory',
      type: 'elCascader',
      label: '知识目录',
      placeholder: '请选择知识目录',
      options:[],
      required: true,

    },
  ],
  colLayout: { span:12 },
  itemStyle: {},
  title: '添加工单类型',
  editTitle: '编辑工单类型',
  subimitLoding: false, // 主动更新数据
}
