Merge pull request #2195 from yangdan8/patch-4
Update table.vue 解决tabs切换时,tab中的table调试时控制台报$el undefined的问题
This commit is contained in:
commit
9147e636f0
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@
|
||||||
this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
|
this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
|
||||||
}
|
}
|
||||||
this.columnsWidth = {};
|
this.columnsWidth = {};
|
||||||
|
if (!this.$refs.tbody) return;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let columnsWidth = {};
|
let columnsWidth = {};
|
||||||
let autoWidthIndex = -1;
|
let autoWidthIndex = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue