瀏覽代碼

Drawer: fix append to body (#21264)

好多大米 4 年之前
父節點
當前提交
f71afe023c
共有 1 個文件被更改,包括 3 次插入0 次删除
  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() {