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

Commit 603c070

Browse files
committed
Returning ASC or DESC
1 parent 353ca97 commit 603c070

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Datasource.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@
183183
184184
this.columnSortSelected.key = key;
185185
186-
this.$emit('column-sort',this.columnSortSelected);
186+
this.$emit('column-sort', {
187+
'key': this.columnSortSelected.key,
188+
'order': (this.columnSortSelected.order ? 'ASC' : 'DESC')
189+
});
187190
},
188191
shouldShowUpArrow(key){
189192
return this.columnSortSelected.key === key && this.columnSortSelected.order === true

0 commit comments

Comments
 (0)