import { BasicColumn, FormSchema } from '/@/components/Table';
// 表单信息新增编辑
export const complicationFormSchema: FormSchema[] = [
  {
    label: '并发症名称',
    field: 'name',
    required: true,
    component: 'Input',
    componentProps: {
      placeholder: '请输入并发症名称',
    },
  },
  {
    label: '排序',
    field: 'sort',
    required: true,
    component: 'InputNumber',
    componentProps: {
      placeholder: '请输入排序编码',
      min: 0,
    },
    defaultValue: 0,
  },
  {
    label: '并发症描述',
    field: 'remark',
    component: 'InputTextArea',
    componentProps: {
      placeholder: '请输入并发症描述',
    },
  },
];
// 说明模板表单列
export const noteInfoColumns: BasicColumn[] = [
  {
    title: '名称',
    dataIndex: 'name',
  },
  {
    title: '模板内容',
    dataIndex: 'context',
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 100,
  },
];
