Skip to content

Commit 9bfba84

Browse files
committed
apijson-table component add sort support
1 parent 257b8e0 commit 9bfba84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uliweb_apijson/apijson/templates/vue/inc_apijson_table.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,10 @@
447447
}
448448
})
449449
},
450-
table_on_sort_change: function(){
451-
450+
table_on_sort_change: function(params){
451+
this.sort_key = params.key
452+
this.sort_order = params.order=="asc" ? "+" : "-"
453+
this.update_list()
452454
},
453455
page_on_change: function(data) {
454456
this.update_list()

0 commit comments

Comments
 (0)