import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
export const formSchemas: FormSchema[] = [
  {
    label: '小区名称',
    field: 'registerCode',
    component: 'Input',
  },
];

export const columns: BasicColumn[] = [
  {
    dataIndex: 'code',
    title: '小区编号',
  },
  {
    dataIndex: 'name',
    title: '小区名称',
  },
  {
    dataIndex: 'address',
    title: '小区地址',
    width: 200,
  },
  // {
  //   dataIndex: 'deptName',
  //   title: '部门',
  //   /** 为了兼容 升级后可以去掉customRender */
  //   customRender({ value, record }) {
  //     if (record.dept && record.dept.deptName) {
  //       return record.dept.deptName;
  //     }
  //     return value;
  //   },
  // },
];
