From 026f07293a3bfa85aeaddd6bdff1f4d2021d8675 Mon Sep 17 00:00:00 2001 From: Junan Date: Thu, 20 Sep 2018 17:24:02 +0800 Subject: [PATCH] 表格展开或缩进的时候重新计算表格高度,判断是否该出现滚动条 --- src/components/table/table.vue | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 5a86321..dc930cc 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -529,6 +529,10 @@ const status = !data._isExpanded; this.objData[_index]._isExpanded = status; this.$emit('on-expand', JSON.parse(JSON.stringify(this.cloneData[_index])), status); + + if(this.height){ + this.$nextTick(()=>this.fixedBody()); + } }, selectAll (status) { // this.rebuildData.forEach((data) => { -- libgit2 0.21.4