Skip to content

Commit 63eabbb

Browse files
authored
fix(types): update [Column] types (#1974)
1 parent 3e0344d commit 63eabbb

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

types/table/column.d.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ export declare class Column extends AntdComponent {
2121
* @type string
2222
*/
2323
align?: 'left' | 'right' | 'center';
24+
25+
/**
26+
* ellipsize cell content, not working with sorter and filters for now.
27+
* tableLayout would be fixed when ellipsis is true.
28+
* @default false
29+
* @type boolean
30+
*/
31+
ellipsis?: boolean;
32+
2433

2534
/**
2635
* Span of this column's title
@@ -33,6 +42,12 @@ export declare class Column extends AntdComponent {
3342
* @type string
3443
*/
3544
dataIndex?: string;
45+
46+
/**
47+
* Default filtered values
48+
* @type string[]
49+
*/
50+
defaultFilteredValue?: string[];
3651

3752
/**
3853
* Default order of sorted values: 'ascend' 'descend' null
@@ -115,7 +130,14 @@ export declare class Column extends AntdComponent {
115130
* @type boolean | string
116131
*/
117132
sortOrder?: boolean | SortOrder;
118-
133+
134+
/**
135+
* supported sort way, could be 'ascend', 'descend'
136+
* @default ['ascend', 'descend']
137+
* @type string[]
138+
*/
139+
sortDirections?: string[];
140+
119141
/**
120142
* Title of this column
121143
* @type any (string | slot)

0 commit comments

Comments
 (0)