From 8fa25af2f22d69edcee6ed19327ffdf2e95108bc Mon Sep 17 00:00:00 2001 From: Heising Date: Wed, 10 Jul 2024 17:16:14 +0800 Subject: [PATCH] chore: popup add FAQ --- src/popup/popup.en-US.md | 14 ++++++++++++++ src/popup/popup.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/popup/popup.en-US.md b/src/popup/popup.en-US.md index 1b64cb946e..2cacf5ccf1 100644 --- a/src/popup/popup.en-US.md +++ b/src/popup/popup.en-US.md @@ -9,6 +9,20 @@ Support functional calls `PopupPlugin` 。 {{ plugin }} +## FAQ + +### How to solve the problem of position offset when nesting `Popup` components? + +Currently, this can be solved by `Fragment` or other `HTML` elements + +```js + + <> + {children} + + +``` + ## API ### Popup Props diff --git a/src/popup/popup.md b/src/popup/popup.md index cc4e3d0497..95df45f1b8 100644 --- a/src/popup/popup.md +++ b/src/popup/popup.md @@ -15,6 +15,20 @@ {{ dynamic }} +## FAQ + +### `Popup` 组件,嵌套使用可能出现位置偏移的情况,如何解决? + +目前暂时可通过 `Fragment` 或者其他 `HTML` 元素来解决 + +```js + + <> + {children} + + +``` + ## API ### Popup Props