表格展开或缩进的时候重新计算表格高度,判断是否该出现滚动条

This commit is contained in:
Junan 2018-09-20 17:24:02 +08:00 committed by GitHub
parent 9c67b23f9f
commit 026f07293a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {