mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Table: add sort-orders (#11283)
This commit is contained in:
4
types/table-column.d.ts
vendored
4
types/table-column.d.ts
vendored
@@ -4,6 +4,7 @@ import { PopoverPlacement } from './popover'
|
||||
|
||||
export type TableColumnType = 'default' | 'selection' | 'index' | 'expand'
|
||||
export type TableColumnFixedType = 'left' | 'right'
|
||||
export type SortOrders = 'ascending' | 'descending' | null
|
||||
|
||||
export type TableColumn = {
|
||||
/** Label of the column */
|
||||
@@ -69,6 +70,9 @@ export declare class ElTableColumn extends ElementUIComponent {
|
||||
/** Sorting method. Works when `sortable` is `true` */
|
||||
sortMethod: (a: any, b: any) => number
|
||||
|
||||
/** The order of the sorting strategies used when sorting the data. Works when `sortable` is `true`. */
|
||||
sortOrders: SortOrders[]
|
||||
|
||||
/** Whether column width can be resized. Works when border of `el-table` is `true` */
|
||||
resizable: boolean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user