fix(types): update [Column] types (#1974)

pull/1979/head
Hawk 2020-03-28 15:22:45 +08:00 committed by GitHub
parent 3e0344d543
commit 63eabbbb7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 1 deletions

View File

@ -22,6 +22,15 @@ export declare class Column extends AntdComponent {
*/
align?: 'left' | 'right' | 'center';
/**
* ellipsize cell content, not working with sorter and filters for now.
* tableLayout would be fixed when ellipsis is true.
* @default false
* @type boolean
*/
ellipsis?: boolean;
/**
* Span of this column's title
* @type number
@ -34,6 +43,12 @@ export declare class Column extends AntdComponent {
*/
dataIndex?: string;
/**
* Default filtered values
* @type string[]
*/
defaultFilteredValue?: string[];
/**
* Default order of sorted values: 'ascend' 'descend' null
* @type string
@ -116,6 +131,13 @@ export declare class Column extends AntdComponent {
*/
sortOrder?: boolean | SortOrder;
/**
* supported sort way, could be 'ascend', 'descend'
* @default ['ascend', 'descend']
* @type string[]
*/
sortDirections?: string[];
/**
* Title of this column
* @type any (string | slot)