mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Picker): fix typo (#8232)
This commit is contained in:
parent
bc9b24c8b6
commit
4d51c1524a
@ -187,7 +187,7 @@ export default {
|
||||
When Picker columns data is acquired asynchronously, use `loading` prop to show loading prompt.
|
||||
|
||||
```html
|
||||
<van-picker title="Title" :columns="columns" :loading="loading" />
|
||||
<van-picker title="Title" :columns="state.columns" :loading="state.loading" />
|
||||
```
|
||||
|
||||
```js
|
||||
@ -214,18 +214,18 @@ export default {
|
||||
|
||||
```html
|
||||
<van-field
|
||||
v-model="value"
|
||||
v-model="state.value"
|
||||
readonly
|
||||
clickable
|
||||
label="City"
|
||||
placeholder="Choose City"
|
||||
@click="showPicker = true"
|
||||
@click="state.showPicker = true"
|
||||
/>
|
||||
<van-popup v-model:show="showPicker" round position="bottom">
|
||||
<van-picker
|
||||
title="Title"
|
||||
:columns="columns"
|
||||
@cancel="showPicker = false"
|
||||
:columns="state.columns"
|
||||
@cancel="state.showPicker = false"
|
||||
@confirm="onConfirm"
|
||||
/>
|
||||
</van-popup>
|
||||
|
@ -209,7 +209,7 @@ export default {
|
||||
若选择器数据是异步获取的,可以通过 `loading` 属性显示加载提示。
|
||||
|
||||
```html
|
||||
<van-picker :columns="columns" :loading="loading" />
|
||||
<van-picker :columns="state.columns" :loading="state.loading" />
|
||||
```
|
||||
|
||||
```js
|
||||
@ -238,17 +238,17 @@ export default {
|
||||
|
||||
```html
|
||||
<van-field
|
||||
v-model="value"
|
||||
v-model="state.value"
|
||||
readonly
|
||||
clickable
|
||||
label="城市"
|
||||
placeholder="选择城市"
|
||||
@click="showPicker = true"
|
||||
@click="state.showPicker = true"
|
||||
/>
|
||||
<van-popup v-model:show="showPicker" round position="bottom">
|
||||
<van-popup v-model:show="state.showPicker" round position="bottom">
|
||||
<van-picker
|
||||
:columns="columns"
|
||||
@cancel="showPicker = false"
|
||||
@cancel="state.showPicker = false"
|
||||
@confirm="onConfirm"
|
||||
/>
|
||||
</van-popup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user