Skip to content

Commit

Permalink
fix(types): update [Column] types (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunnly committed Mar 28, 2020
1 parent 3e0344d commit 63eabbb
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion types/table/column.d.ts
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 63eabbb

Please sign in to comment.