config.ts 1.03 KB
import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '创建时间',
    dataIndex: 'createdTime',
    width: 200,
  },
  {
    title: '名称',
    dataIndex: 'name',
    width: 200,
  },
  {
    title: '说明',
    dataIndex: 'description',
    width: 120,
  },
  {
    title: '默认',
    dataIndex: 'default',
    width: 200,
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'name',
    label: '名称',
    colProps: { span: 24 },
    required: true,
    component: 'Input',
    componentProps: {
      placeholder: '名称',
    },
  },
  {
    field: 'isolatedTbRuleEngine',
    label: '隔离板芯容器的加工',
    component: 'Checkbox',
  },
  {
    field: 'isolatedTbCore',
    label: '在独立的ThinngsBoard规则引擎中处理',
    component: 'Checkbox',
  },
  {
    field: 'description',
    label: '说明',
    colProps: { span: 24 },
    component: 'InputTextArea',
    componentProps: {
      placeholder: '请输入说明',
    },
  },
];