diff --git a/src/popup/popup.en-US.md b/src/popup/popup.en-US.md index 1b64cb946..2cacf5ccf 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 cc4e3d049..95df45f1b 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