Skip to content

Commit

Permalink
docs(Popconfirm): add FAQ (#2986)
Browse files Browse the repository at this point in the history
* chore: popconfirm add FAQ

* fix: fix typo

---------

Co-authored-by: Heising <[email protected]>
  • Loading branch information
HaixingOoO and Heising authored Jul 10, 2024
1 parent 2d063fb commit 3c75ef6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/popconfirm/popconfirm.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
:: BASE_DOC ::

## FAQ

### How to solve the problem that `Popconfirm` and related floating components based on `Popup` may be offset when nested?

Currently, this can be solved by `Fragment` or other `HTML` elements

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

## API

### Popconfirm Props
Expand Down
14 changes: 14 additions & 0 deletions src/popconfirm/popconfirm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
:: BASE_DOC ::

## FAQ

### `Popconfirm` 及基于 `Popup` 的相关浮层组件,嵌套使用可能出现位置偏移的情况,如何解决?

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

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

## API
### Popconfirm Props

Expand Down

0 comments on commit 3c75ef6

Please sign in to comment.