From 782ad4b29100e31d8e41616494b5fdda7403337c Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 20 5月 2025 18:13:30 +0800 Subject: [PATCH] //将抽屉强制挂载到 body 元素上,确保样式隔离和滚动行为正常,不受嵌套页面的影响 --- PipeLineLems/pipelinelems_web/src/components/BaseQueryDrawer/BaseQueryDrawer.tsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/PipeLineLems/pipelinelems_web/src/components/BaseQueryDrawer/BaseQueryDrawer.tsx b/PipeLineLems/pipelinelems_web/src/components/BaseQueryDrawer/BaseQueryDrawer.tsx index 9d144bb..9c82177 100644 --- a/PipeLineLems/pipelinelems_web/src/components/BaseQueryDrawer/BaseQueryDrawer.tsx +++ b/PipeLineLems/pipelinelems_web/src/components/BaseQueryDrawer/BaseQueryDrawer.tsx @@ -6,7 +6,7 @@ [key: string]: any }>({ // @ts-ignore - name: 'BaseDrawer', + name: 'BaseQueryDrawer', props: { // 閬僵鏄惁鍙偣鍑� clickable: { @@ -49,6 +49,8 @@ > <el-drawer // modal-class={props.clickable ? styles.modal : ''} + //灏嗘娊灞夊己鍒舵寕杞藉埌 body 鍏冪礌涓婏紝纭繚鏍峰紡闅旂鍜屾粴鍔ㄨ涓烘甯革紝涓嶅彈宓屽椤甸潰鐨勫奖鍝� + append-to-body="true" class={{ [styles.informationDrawer]: true, // [styles.informationDrawerPosition]: props.clickable, -- Gitblit v1.9.3