You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
821 B
32 lines
821 B
import type { TableColumn } from '@/components/core/dynamic-table';
|
|
export type TableListItem = API.IssueType;
|
|
export type TableColumnItem = TableColumn<TableListItem>;
|
|
// 数据项类型
|
|
// export type ListItemType = typeof tableData[number];
|
|
// 使用TableColumn<ListItemType> 将会限制dataIndex的类型,但换来的是dataIndex有类型提示
|
|
export const baseColumns: TableColumnItem[] = [
|
|
{
|
|
title: '标题',
|
|
align: 'center',
|
|
dataIndex: 'title',
|
|
// sorter: true,
|
|
width: 150,
|
|
resizable: true,
|
|
formItemProps: {
|
|
defaultValue: '',
|
|
required: false,
|
|
},
|
|
},
|
|
|
|
{
|
|
title: '创建时间',
|
|
align: 'center',
|
|
width: 200,
|
|
dataIndex: 'createTime',
|
|
formItemProps: {
|
|
defaultValue: '',
|
|
required: false,
|
|
component: 'RangePicker',
|
|
},
|
|
},
|
|
];
|