Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 7ec819c

Browse files
committed
Emitting name event sort
1 parent e5080fe commit 7ec819c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/utils/DatasourceUtils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export default {
9595
this.columnSortSelected.order = false
9696
this.columnSortSelected.key = key
9797
}
98-
this.$emit('column-sort', this.columnSortSelected)
98+
let sortType = (this.columnSortSelected.order) ? 'ASC' : 'DESC'
99+
this.$emit('column-sort', { sort: this.columnSortSelected, type: sortType })
99100
},
100101

101102
/**

0 commit comments

Comments
 (0)