Commit 6a84ef2951f3f99928956e2a3fadb361f3a18fb1

Authored by Aresn
Committed by GitHub
2 parents 8e2afca3 d2d5eca6

Merge pull request #4490 from yangdan8/2.0

修复表格排序属性的类型
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
types/table.d.ts
... ... @@ -242,7 +242,7 @@ export declare interface TableColumn {
242 242 * 需要监听 Table 的 on- sort - change 事件,默认false
243 243 * @default false
244 244 */
245   - sortable?: boolean;
  245 + sortable?: boolean | 'custom';
246 246 /**
247 247 * 自定义排序使用的方法,接收三个参数 a 、 b 和 type,
248 248 * 当设置 sortable?: true 时有效。type 值为 asc 和 desc
... ...