fix(table): fix table typo

This commit is contained in:
vben
2020-11-03 00:59:39 +08:00
parent 86de31045b
commit 69af37ec88
3 changed files with 22 additions and 12 deletions

View File

@@ -1,9 +1,12 @@
import type { VNodeChild } from 'vue';
import type { PaginationProps } from './pagination';
import type { FormProps } from '/@/components/Form/index';
import type { IColumnProps, ITableRowSelection } from 'ant-design-vue/lib/table/interface';
import type {
ColumnProps,
TableRowSelection as ITableRowSelection,
} from 'ant-design-vue/lib/table/interface';
import { ComponentType } from './componentType';
import { ColumnProps } from './column';
// import { ColumnProps } from './column';
export declare type SortOrder = 'ascend' | 'descend';
export interface TableCurrentDataSource<T = any> {
currentDataSource: T[];
@@ -55,8 +58,8 @@ export interface TableCustomRecord<T = any> {
index?: number;
}
export interface SorterResult<T> {
column: ColumnProps<T>;
export interface SorterResult {
column: ColumnProps;
order: SortOrder;
field: string;
columnKey: string;
@@ -309,7 +312,7 @@ export interface BasicTableProps<T = any> {
* Set props on per header row
* @type Function
*/
customHeaderRow?: (column: IColumnProps, index: number) => object;
customHeaderRow?: (column: ColumnProps, index: number) => object;
/**
* Set props on per row
@@ -366,8 +369,9 @@ export interface BasicTableProps<T = any> {
onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
}
export interface BasicColumn extends IColumnProps {
export interface BasicColumn extends ColumnProps {
children?: BasicColumn[];
//
flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';