表格展开或缩进的时候重新计算表格高度,判断是否该出现滚动条
This commit is contained in:
parent
9c67b23f9f
commit
026f07293a
1 changed files with 4 additions and 0 deletions
|
@ -529,6 +529,10 @@
|
||||||
const status = !data._isExpanded;
|
const status = !data._isExpanded;
|
||||||
this.objData[_index]._isExpanded = status;
|
this.objData[_index]._isExpanded = status;
|
||||||
this.$emit('on-expand', JSON.parse(JSON.stringify(this.cloneData[_index])), status);
|
this.$emit('on-expand', JSON.parse(JSON.stringify(this.cloneData[_index])), status);
|
||||||
|
|
||||||
|
if(this.height){
|
||||||
|
this.$nextTick(()=>this.fixedBody());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
selectAll (status) {
|
selectAll (status) {
|
||||||
// this.rebuildData.forEach((data) => {
|
// this.rebuildData.forEach((data) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue