import {BasicColumn} from "@/components/Table";

export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'index',
    key: 'rowIndex',
    width: 60,
    align: "center",
    customRender: function ({text, record, index, column}) {

      return parseInt(index) + 1;
    }
  },
  {
    title: '邮箱',
    align: "center",
    sorter: true,
    dataIndex: 'email'
  },
  {
    title: '黑白名单',
    align: "center",
    dataIndex: 'blackOrWhite',
  },
  {
    title: '询盘数量',
    align: "center",
    sorter: true,
    dataIndex: 'wasteEnquiryNum',
    scopedSlots: {customRender: 'wasteEnquiryNum'}
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createTime',
    sorter: true
  }
];
