Skip to content

Commit a946ef2

Browse files
author
黄书伟
committed
修复排序回调问题
1 parent 2cb31ea commit a946ef2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/v-table/src/sortControlMixin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default {
2323

2424
// 排序控制
2525
sortControl(field, orderBy){
26+
2627
var self = this,
2728
collection = self.titleRowsToSortInfo.length > 0 ? self.titleRowsToSortInfo : self.internalColumns;
2829

@@ -40,7 +41,8 @@ export default {
4041
}
4142
}
4243
})
43-
self.$emit('sortChange', self.sortColumns());
44+
45+
self.$emit('sort-change', self.sortColumns());
4446
}
4547
},
4648
// 只允许保留第一个排序规则(‘asc’或者‘desc’)

0 commit comments

Comments
 (0)