Explorar el Código

Drawer: fix append to body (#21264)

好多大米 hace 4 años
padre
commit
f71afe023c
Se han modificado 1 ficheros con 3 adiciones y 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() {