import { FormSchema } from '/@/components/Table';
// import { createVNode } from 'vue';
// import RenderForm from './renderForm.vue';
export const reservePlanForm: FormSchema[] = [
  {
    field: 'name',
    label: '预案名称',
    component: 'Input',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入关键字',
    },
  },
  {
    field: 'dutyUnit',
    label: '预案概要',
    component: 'InputTextArea',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
      rows: 6,
    },
  },
  {
    field: 'areaBelongs',
    label: '所属领域',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'dangerSourceName',
    label: '所属行业',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'dangerSourceName',
    label: '印发单位',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'dangerSourceType',
    label: '预案附件',
    component: 'Upload',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '请上传附件,仅支持上传一份PDF文件，文件格式支持.pdf，文件大小不得超过200M',
    },
  },
  {
    field: 'dangerSourceType',
    label: '配置响应级别及人员',
    component: 'Render',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
    },
    // render: () => {
    //   return createVNode(RenderForm);
    // },
    // render: () => {
    //   return createVNode('<div><a-input placeholder="请输入111" /></div>');
    // },
  },
];
