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

export const columns: BasicColumn[] = [
  {
    title: '专业ID',
    align: 'center',
    dataIndex: 'majorId',
  },
  {
    title: '标签',
    align: 'center',
    dataIndex: 'tagName',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '专业ID',
    field: 'majorId',
    component: 'InputNumber',
    colProps: { span: 6 },
  },
  {
    label: '标签',
    field: 'tagName',
    component: 'Input',
    colProps: { span: 6 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '专业ID',
    field: 'majorId',
    component: 'InputNumber',
    required: true,
  },
  {
    label: '标签',
    field: 'tagName',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];

export function getBpmFormSchema(_formData): FormSchema[] {
  return formSchema;
}

