diff --git a/src/views/table/complex-table.vue b/src/views/table/complex-table.vue index 43b00e80..51ea42a1 100644 --- a/src/views/table/complex-table.vue +++ b/src/views/table/complex-table.vue @@ -35,7 +35,7 @@ style="width: 100%;" @sort-change="sortChange" > - + @@ -375,6 +375,14 @@ export default { return v[j] } })) + }, + getSortClass: function(key) { + const sort = this.listQuery.sort + return sort === `+${key}` + ? 'ascending' + : sort === `-${key}` + ? 'descending' + : '' } } }