diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 5b13f01..3957b68 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -380,11 +380,10 @@ if (this.$refs.tbody) { let bodyContentEl = this.$refs.tbody.$el; let bodyEl = bodyContentEl.parentElement; - let className = bodyEl.className; bodyEl.className = ''; + this.$nextTick(() => { bodyEl.className = this.prefixCls + '-body'; }); let bodyContentHeight = bodyContentEl.offsetHeight; let bodyContentWidth = bodyContentEl.offsetWidth; - bodyEl.className = className; let bodyWidth = bodyEl.offsetWidth; let bodyHeight = bodyEl.offsetHeight; let scrollBarWidth = 0; -- libgit2 0.21.4