修复表格排序属性的类型
This commit is contained in:
parent
ca928d83e5
commit
d2d5eca64b
1 changed files with 1 additions and 1 deletions
2
types/table.d.ts
vendored
2
types/table.d.ts
vendored
|
@ -242,7 +242,7 @@ export declare interface TableColumn {
|
|||
* 需要监听 Table 的 on- sort - change 事件,默认false
|
||||
* @default false
|
||||
*/
|
||||
sortable?: boolean;
|
||||
sortable?: boolean | 'custom';
|
||||
/**
|
||||
* 自定义排序使用的方法,接收三个参数 a 、 b 和 type,
|
||||
* 当设置 sortable?: true 时有效。type 值为 asc 和 desc
|
||||
|
|
Loading…
Add table
Reference in a new issue