Skip to content

Commit 4028194

Browse files
author
黄书伟
committed
fixed bug
1 parent 7d75b2e commit 4028194

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

libs/v-table/src/table.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@
860860
handler: function (newVal) {
861861
862862
this.skipRenderCells = [];
863-
this.clickRowIndex = -1;
864863
865864
this.internalTableData = this.initInternalTableData(newVal);
866865
@@ -880,6 +879,13 @@
880879
this.bodyScrollTop();
881880
},
882881
deep: true
882+
},
883+
'pagingIndex':{
884+
885+
handler:function () {
886+
887+
this.clickRowIndex = -1;
888+
}
883889
}
884890
},
885891
beforeDestroy(){

packages/v-table/src/table.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@
860860
handler: function (newVal) {
861861
862862
this.skipRenderCells = [];
863-
this.clickRowIndex = -1;
864863
865864
this.internalTableData = this.initInternalTableData(newVal);
866865
@@ -880,6 +879,13 @@
880879
this.bodyScrollTop();
881880
},
882881
deep: true
882+
},
883+
'pagingIndex':{
884+
885+
handler:function () {
886+
887+
this.clickRowIndex = -1;
888+
}
883889
}
884890
},
885891
beforeDestroy(){

umd/js/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)