Browse Source

Drawer: fix append to body (#21264)

好多大米 4 năm trước cách đây
mục cha
commit
f71afe023c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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() {