Forráskód Böngészése

Drawer: fix append to body (#21264)

好多大米 4 éve
szülő
commit
f71afe023c
1 módosított fájl, 3 hozzáadás és 0 törlés
  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() {