import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '描述',
    dataIndex: 'remark'
   },
   {
    title: '值',
    dataIndex: 'val'
   },
   {
    title: '编码',
    dataIndex: 'code'
   },
   {
    title: '更新时间',
    dataIndex: 'tsamp'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '描述',
    field: 'remark',
    component: 'Input'
  },
 {
    label: '值',
    field: 'val',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '描述',
    field: 'remark',
    component: 'Input',
  },
  {
    label: '值',
    field: 'val',
    component: 'Input',
  },
  {
    label: '编码',
    field: 'code',
    component: 'Input',
  },
  {
    label: 'tsamp',
    field: 'tsamp',
    component: 'Input',
  },
];
