Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(Popup): add FAQ #2987

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/popup/popup.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<Popup content="Popup Content">
<>
{children}
</>
</Popup>
```

## API
### Popup Props

Expand Down
14 changes: 14 additions & 0 deletions src/popup/popup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@

{{ dynamic }}

## FAQ

### `Popup` 组件,嵌套使用可能出现位置偏移的情况,如何解决?

目前暂时可通过 `Fragment` 或者其他 `HTML` 元素来解决

```js
<Popup content="Popup Content">
<>
{children}
</>
</Popup>
```

## API
### Popup Props

Expand Down
Loading