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

export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: '',
    key: 'rowIndex',
    width: 60,
    align: 'center',
    customRender: function ({ index }) {
      return parseInt(index) + 1;
    },
  },
  {
    title: '关键词',
    align: 'center',
    dataIndex: 'word',
  },
  {
    title: '关键词翻译',
    align: 'center',
    dataIndex: 'translateWord',
  },
  {
    title: '黑白名单',
    align: 'center',
    dataIndex: 'blackOrWhiteList',
    width: 180,
    sorter: true,
  },
  {
    title: '询盘数量',
    align: 'center',
    dataIndex: 'wasteEnquiryNum',
  },
  {
    title: '作用域',
    align: 'center',
    dataIndex: 'useStatus',
    width: 180,
    sorter: true,
  },
  {
    title: '状态',
    align: 'center',
    dataIndex: 'isEnable',
    width: 180,
    sorter: true,
  },
  {
    title: '创建时间',
    align: 'center',
    dataIndex: 'createTime',
    width: 180,
    sorter: true,
  },
];
