
const columns = [
	{
    title: '序号',
    dataIndex: 'sort',
    key: 'sort',
    scopedSlots: { customRender: 'sort' }
	},
	{
    title: '分类名称',
    dataIndex: 'sortName',
    key: 'sortName',
		scopedSlots: { customRender: 'sortName' },
		onFilter: (value, record) => record.name.includes(value),
		// filteredValue: filteredInfo.name || null,
		// sortOrder: sortedInfo.columnKey === 'name' && sortedInfo.order,
		ellipsis: true
	},
	{
    title: '分类代码',
    dataIndex: 'sortCode',
    key: 'sortCode',
    scopedSlots: { customRender: 'sortCode' }
	},
	{
    title: '创建人',
    dataIndex: 'createBy',
    key: 'createBy',
    scopedSlots: { customRender: 'createBy' }
	},
	{
    title: '创建时间',
    dataIndex: 'createDate',
    key: 'createDate',
    scopedSlots: { customRender: 'createDate' }
	}
]
const dataSource = []
for (let index = 0; index < 10; index++) {
	dataSource.push({
		key: index,
		sort: index,
		sortName: `世界各国和地区名称 ${index}`,
		sortCode: `0101 ${index}`,
		createBy: `admin`,
		createDate: `2020-01-0${index}`
	})
}
export { columns, dataSource }
