Skip to content

Commit 7dcef39

Browse files
cyfung1031CodFrm
andauthored
🐛 修复弹出内容跟随屏幕滚动的问题 #1256 (#1259)
* fix #1256 * Update Setting.tsx * 使用ConfigProvider处理 * Popconfirm * Tooltip * 处理getPopupContainer --------- Co-authored-by: 王一之 <yz@ggnb.top>
1 parent 7c5c912 commit 7dcef39

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/pages/components/layout/MainLayout.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,16 @@ const MainLayout: React.FC<{
294294
return <Empty description={t("no_data")} />;
295295
}}
296296
locale={arcoLocale(i18n.language)}
297+
componentConfig={{
298+
Popconfirm: {
299+
getPopupContainer: (node) => {
300+
return node.parentNode as Element;
301+
},
302+
},
303+
}}
304+
getPopupContainer={(node) => {
305+
return node;
306+
}}
297307
>
298308
{contextHolder}
299309
<Layout className={"tw-min-h-screen"}>

0 commit comments

Comments
 (0)