mirror of https://github.com/ElemeFE/element
Drawer: fix append to body (#21264)
parent
cd44289adf
commit
f71afe023c
|
@ -190,6 +190,9 @@ export default {
|
||||||
if (this.visible) {
|
if (this.visible) {
|
||||||
this.rendered = true;
|
this.rendered = true;
|
||||||
this.open();
|
this.open();
|
||||||
|
if (this.appendToBody) {
|
||||||
|
document.body.appendChild(this.$el);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
|
Loading…
Reference in New Issue