parent
dde5774119
commit
943a4a73e5
1 changed files with 4 additions and 2 deletions
|
@ -171,7 +171,8 @@
|
||||||
this.$parent.selectAll(status);
|
this.$parent.selectAll(status);
|
||||||
},
|
},
|
||||||
handleSort (index, type) {
|
handleSort (index, type) {
|
||||||
const column = this.columns[index];
|
// 在固定列时,寻找正确的 index #5580
|
||||||
|
const column = this.columns.find(item => item._index === index);
|
||||||
const _index = column._index;
|
const _index = column._index;
|
||||||
|
|
||||||
if (column._sortType === type) {
|
if (column._sortType === type) {
|
||||||
|
@ -180,7 +181,8 @@
|
||||||
this.$parent.handleSort(_index, type);
|
this.$parent.handleSort(_index, type);
|
||||||
},
|
},
|
||||||
handleSortByHead (index) {
|
handleSortByHead (index) {
|
||||||
const column = this.columns[index];
|
// 在固定列时,寻找正确的 index #5580
|
||||||
|
const column = this.columns.find(item => item._index === index);
|
||||||
if (column.sortable) {
|
if (column.sortable) {
|
||||||
const type = column._sortType;
|
const type = column._sortType;
|
||||||
if (type === 'normal') {
|
if (type === 'normal') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue