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. When Picker columns data is acquired asynchronously, use `loading` prop to show loading prompt.
```html ```html
<van-picker title="Title" :columns="columns" :loading="loading" /> <van-picker title="Title" :columns="state.columns" :loading="state.loading" />
``` ```
```js ```js
@ -214,18 +214,18 @@ export default {
```html ```html
<van-field <van-field
v-model="value" v-model="state.value"
readonly readonly
clickable clickable
label="City" label="City"
placeholder="Choose City" placeholder="Choose City"
@click="showPicker = true" @click="state.showPicker = true"
/> />
<van-popup v-model:show="showPicker" round position="bottom"> <van-popup v-model:show="showPicker" round position="bottom">
<van-picker <van-picker
title="Title" title="Title"
:columns="columns" :columns="state.columns"
@cancel="showPicker = false" @cancel="state.showPicker = false"
@confirm="onConfirm" @confirm="onConfirm"
/> />
</van-popup> </van-popup>

View File

@ -209,7 +209,7 @@ export default {
若选择器数据是异步获取的,可以通过 `loading` 属性显示加载提示。 若选择器数据是异步获取的,可以通过 `loading` 属性显示加载提示。
```html ```html
<van-picker :columns="columns" :loading="loading" /> <van-picker :columns="state.columns" :loading="state.loading" />
``` ```
```js ```js
@ -238,17 +238,17 @@ export default {
```html ```html
<van-field <van-field
v-model="value" v-model="state.value"
readonly readonly
clickable clickable
label="城市" label="城市"
placeholder="选择城市" 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 <van-picker
:columns="columns" :columns="columns"
@cancel="showPicker = false" @cancel="state.showPicker = false"
@confirm="onConfirm" @confirm="onConfirm"
/> />
</van-popup> </van-popup>