Skip to content

docs: fix placement typo #13222

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

Merged
merged 1 commit into from
Nov 24, 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
2 changes: 1 addition & 1 deletion packages/vant/src/popover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ You can use Popover as a controlled or uncontrolled component:
- When `v-model:show` is not used, Popover is an uncontrolled component. You can pass in a default value through the `show` prop, and the display is controlled by the component itself.

```html
<van-popover :actions="actions" position="top-start" @select="onSelect">
<van-popover :actions="actions" placement="top-start" @select="onSelect">
<template #reference>
<van-button type="primary">Uncontrolled</van-button>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/vant/src/popover/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default {
- 当未绑定 `v-model:show` 时,Popover 为非受控组件,此时你可以通过 `show` 属性传入一个默认值,组件值的显示由组件自身控制。

```html
<van-popover :actions="actions" position="top-start" @select="onSelect">
<van-popover :actions="actions" placement="top-start" @select="onSelect">
<template #reference>
<van-button type="primary">非受控模式</van-button>
</template>
Expand Down