set back className in nextTick
This commit is contained in:
parent
f25f12527e
commit
224a79e7ca
1 changed files with 1 additions and 2 deletions
|
@ -380,11 +380,10 @@
|
||||||
if (this.$refs.tbody) {
|
if (this.$refs.tbody) {
|
||||||
let bodyContentEl = this.$refs.tbody.$el;
|
let bodyContentEl = this.$refs.tbody.$el;
|
||||||
let bodyEl = bodyContentEl.parentElement;
|
let bodyEl = bodyContentEl.parentElement;
|
||||||
let className = bodyEl.className;
|
|
||||||
bodyEl.className = '';
|
bodyEl.className = '';
|
||||||
|
this.$nextTick(() => { bodyEl.className = this.prefixCls + '-body'; });
|
||||||
let bodyContentHeight = bodyContentEl.offsetHeight;
|
let bodyContentHeight = bodyContentEl.offsetHeight;
|
||||||
let bodyContentWidth = bodyContentEl.offsetWidth;
|
let bodyContentWidth = bodyContentEl.offsetWidth;
|
||||||
bodyEl.className = className;
|
|
||||||
let bodyWidth = bodyEl.offsetWidth;
|
let bodyWidth = bodyEl.offsetWidth;
|
||||||
let bodyHeight = bodyEl.offsetHeight;
|
let bodyHeight = bodyEl.offsetHeight;
|
||||||
let scrollBarWidth = 0;
|
let scrollBarWidth = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue