From 7afd93ac3de2073989bafc887a1fb39dc79a84fc Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 24 Nov 2017 16:09:08 +0800 Subject: [PATCH] Table: fix high CPU consumption --- packages/table/src/table.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/table/src/table.vue b/packages/table/src/table.vue index 001d7bc8c..ee7091046 100644 --- a/packages/table/src/table.vue +++ b/packages/table/src/table.vue @@ -4,7 +4,6 @@ 'el-table--fit': fit, 'el-table--striped': stripe, 'el-table--border': border, - 'el-table--hidden': isHidden, 'el-table--fluid-height': maxHeight, 'el-table--enable-row-hover': !store.states.isComplex, 'el-table--enable-row-transition': (store.states.data || []).length !== 0 && (store.states.data || []).length < 100 @@ -294,12 +293,6 @@ } else if (this.shouldUpdateHeight) { this.layout.updateHeight(); } - if (this.$el) { - this.isHidden = this.$el.clientWidth === 0; - if (this.isHidden && this.layout.bodyWidth) { - setTimeout(() => this.doLayout()); - } - } }); } }, @@ -460,7 +453,6 @@ return { store, layout, - isHidden: false, renderExpanded: null, resizeProxyVisible: false };