docs: fix popup v-model usage #7141

This commit is contained in:
chenjiahan 2020-09-09 17:29:06 +08:00
parent 3205c20d86
commit 78ded3b7da
6 changed files with 12 additions and 12 deletions

View File

@ -26,7 +26,7 @@ app.use(ContactEdit);
/>
<!-- Contact List -->
<van-popup v-model="showList" position="bottom">
<van-popup v-model:show="showList" position="bottom">
<van-contact-list
v-model="chosenContactId"
:list="list"
@ -37,7 +37,7 @@ app.use(ContactEdit);
</van-popup>
<!-- Contact Edit -->
<van-popup v-model="showEdit" position="bottom">
<van-popup v-model:show="showEdit" position="bottom">
<van-contact-edit
:contact-info="editingContact"
:is-edit="isEdit"

View File

@ -30,7 +30,7 @@ app.use(ContactEdit);
/>
<!-- 联系人列表 -->
<van-popup v-model="showList" position="bottom">
<van-popup v-model:show="showList" position="bottom">
<van-contact-list
v-model="chosenContactId"
:list="list"
@ -41,7 +41,7 @@ app.use(ContactEdit);
</van-popup>
<!-- 联系人编辑 -->
<van-popup v-model="showEdit" position="bottom">
<van-popup v-model:show="showEdit" position="bottom">
<van-contact-edit
:contact-info="editingContact"
:is-edit="isEdit"

View File

@ -282,7 +282,7 @@ export default {
placeholder="Select city"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" position="bottom">
<van-popup v-model:show="showPicker" position="bottom">
<van-picker
:columns="columns"
@confirm="onConfirm"
@ -321,7 +321,7 @@ export default {
placeholder="Select time"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" position="bottom">
<van-popup v-model:show="showPicker" position="bottom">
<van-datetime-picker
type="time"
@confirm="onConfirm"
@ -359,7 +359,7 @@ export default {
placeholder="Select area"
@click="showArea = true"
/>
<van-popup v-model="showArea" position="bottom">
<van-popup v-model:show="showArea" position="bottom">
<van-area
:area-list="areaList"
@confirm="onConfirm"

View File

@ -311,7 +311,7 @@ export default {
placeholder="点击选择城市"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" position="bottom">
<van-popup v-model:show="showPicker" position="bottom">
<van-picker
:columns="columns"
@confirm="onConfirm"
@ -352,7 +352,7 @@ export default {
placeholder="点击选择时间"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" position="bottom">
<van-popup v-model:show="showPicker" position="bottom">
<van-datetime-picker
type="time"
@confirm="onConfirm"
@ -392,7 +392,7 @@ export default {
placeholder="点击选择省市区"
@click="showArea = true"
/>
<van-popup v-model="showArea" position="bottom">
<van-popup v-model:show="showArea" position="bottom">
<van-area
:area-list="areaList"
@confirm="onConfirm"

View File

@ -207,7 +207,7 @@ export default {
placeholder="Choose City"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" round position="bottom">
<van-popup v-model:show="showPicker" round position="bottom">
<van-picker
title="Title"
:columns="columns"

View File

@ -231,7 +231,7 @@ export default {
placeholder="选择城市"
@click="showPicker = true"
/>
<van-popup v-model="showPicker" round position="bottom">
<van-popup v-model:show="showPicker" round position="bottom">
<van-picker
:columns="columns"
@cancel="showPicker = false"