mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix: sorter compare and multiple should be optional (#26686)
close #26085
This commit is contained in:
parent
75f50f9d17
commit
0472da5a40
@ -77,15 +77,14 @@ export interface FilterDropdownProps {
|
|||||||
|
|
||||||
export interface ColumnType<RecordType> extends RcColumnType<RecordType> {
|
export interface ColumnType<RecordType> extends RcColumnType<RecordType> {
|
||||||
title?: ColumnTitle<RecordType>;
|
title?: ColumnTitle<RecordType>;
|
||||||
|
|
||||||
// Sorter
|
// Sorter
|
||||||
sorter?:
|
sorter?:
|
||||||
| boolean
|
| boolean
|
||||||
| CompareFn<RecordType>
|
| CompareFn<RecordType>
|
||||||
| {
|
| {
|
||||||
compare: CompareFn<RecordType>;
|
compare?: CompareFn<RecordType>;
|
||||||
/** Config multiple sorter order priority */
|
/** Config multiple sorter order priority */
|
||||||
multiple: number;
|
multiple?: number;
|
||||||
};
|
};
|
||||||
sortOrder?: SortOrder;
|
sortOrder?: SortOrder;
|
||||||
defaultSortOrder?: SortOrder;
|
defaultSortOrder?: SortOrder;
|
||||||
|
Loading…
Reference in New Issue
Block a user