docs(Picker): fix typo (#8232)

This commit is contained in:
Lu Zhijian 2021-02-27 19:46:51 +08:00 committed by GitHub
parent bc9b24c8b6
commit 4d51c1524a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -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>

View File

@ -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>