mirror of https://github.com/ElemeFE/element
Table: Trigger `doLayout` when display from `none` to others
parent
302eb3116f
commit
fa494b1952
|
@ -330,6 +330,9 @@
|
||||||
}
|
}
|
||||||
if (this.$el) {
|
if (this.$el) {
|
||||||
this.isHidden = this.$el.clientWidth === 0;
|
this.isHidden = this.$el.clientWidth === 0;
|
||||||
|
if (this.isHidden && this.layout.bodyWidth) {
|
||||||
|
setTimeout(() => this.doLayout());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue