diff --git a/src/dialog/_example/attach.vue b/src/dialog/_example/attach.vue index 8b693fb12..67df2631c 100644 --- a/src/dialog/_example/attach.vue +++ b/src/dialog/_example/attach.vue @@ -49,6 +49,7 @@
- +

抽屉的内容

diff --git a/src/drawer/drawer.tsx b/src/drawer/drawer.tsx index 617c2dfc2..ef298fe31 100644 --- a/src/drawer/drawer.tsx +++ b/src/drawer/drawer.tsx @@ -122,7 +122,7 @@ export default mixins( }; }, computedAttach(): AttachNode { - return this.showInAttachedElement ? undefined : this.attach || this.globalAttach(); + return this.attach || this.globalAttach(); }, },