Explorar o código

Drawer: fix append to body (#21264)

好多大米 %!s(int64=4) %!d(string=hai) anos
pai
achega
f71afe023c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/drawer/src/main.vue

+ 3 - 0
packages/drawer/src/main.vue

@@ -190,6 +190,9 @@ export default {
     if (this.visible) {
       this.rendered = true;
       this.open();
+      if (this.appendToBody) {
+        document.body.appendChild(this.$el);
+      }
     }
   },
   destroyed() {