Commit 026f07293a3bfa85aeaddd6bdff1f4d2021d8675
Committed by
GitHub
1 parent
9c67b23f
表格展开或缩进的时候重新计算表格高度,判断是否该出现滚动条
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/components/table/table.vue
... | ... | @@ -529,6 +529,10 @@ |
529 | 529 | const status = !data._isExpanded; |
530 | 530 | this.objData[_index]._isExpanded = status; |
531 | 531 | this.$emit('on-expand', JSON.parse(JSON.stringify(this.cloneData[_index])), status); |
532 | + | |
533 | + if(this.height){ | |
534 | + this.$nextTick(()=>this.fixedBody()); | |
535 | + } | |
532 | 536 | }, |
533 | 537 | selectAll (status) { |
534 | 538 | // this.rebuildData.forEach((data) => { | ... | ... |