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

@ -21,6 +21,15 @@ export declare class Column extends AntdComponent {
* @type string
*/
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
@ -33,6 +42,12 @@ export declare class Column extends AntdComponent {
* @type string
*/
dataIndex?: string;
/**
* Default filtered values
* @type string[]
*/
defaultFilteredValue?: string[];
/**
* Default order of sorted values: 'ascend' 'descend' null
@ -115,7 +130,14 @@ export declare class Column extends AntdComponent {
* @type boolean | string
*/
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)