From a39b86698ee482c2d6140120a3a73145148556be Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Mon, 11 Jun 2018 22:23:10 +0800 Subject: [PATCH] fix: table update height error #13 --- components/vc-table/src/BodyTable.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/vc-table/src/BodyTable.jsx b/components/vc-table/src/BodyTable.jsx index e4812a22d..bc5e8632b 100644 --- a/components/vc-table/src/BodyTable.jsx +++ b/components/vc-table/src/BodyTable.jsx @@ -27,11 +27,9 @@ export default { }, methods: { updateTableRef () { - this.$nextTick(() => { - this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft) - this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight) - this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable) - }) + this.$refs.fixedColumnsBodyLeft && this.table.saveChildrenRef('fixedColumnsBodyLeft', this.$refs.fixedColumnsBodyLeft) + this.$refs.fixedColumnsBodyRight && this.table.saveChildrenRef('fixedColumnsBodyRight', this.$refs.fixedColumnsBodyRight) + this.$refs.bodyTable && this.table.saveChildrenRef('bodyTable', this.$refs.bodyTable) }, }, render () {