docs: remove legacy slot usage

This commit is contained in:
chenjiahan
2020-08-15 07:27:35 +08:00
parent b6e42d2344
commit 272a89423e
12 changed files with 78 additions and 68 deletions
+14 -13
View File
@@ -8,19 +8,20 @@
:placeholder="t('placeholder')"
@click="showArea = true"
>
<van-popup
v-model="showArea"
round
slot="extra"
position="bottom"
get-container="body"
>
<van-area
:area-list="t('areaList')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
<template #extra>
<van-popup
v-model="showArea"
round
position="bottom"
get-container="body"
>
<van-area
:area-list="t('areaList')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
</template>
+8 -7
View File
@@ -8,13 +8,14 @@
:placeholder="t('placeholder')"
@click="showCalendar = true"
>
<van-calendar
v-model="showCalendar"
round
slot="extra"
get-container="body"
@confirm="onConfirm"
/>
<template #extra>
<van-calendar
v-model="showCalendar"
round
get-container="body"
@confirm="onConfirm"
/>
</template>
</van-field>
</template>
+14 -13
View File
@@ -8,19 +8,20 @@
:placeholder="t('placeholder')"
@click="showPicker = true"
>
<van-popup
v-model="showPicker"
round
slot="extra"
position="bottom"
get-container="body"
>
<van-datetime-picker
type="time"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
<template #extra>
<van-popup
v-model="showPicker"
round
position="bottom"
get-container="body"
>
<van-datetime-picker
type="time"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
</template>
+15 -14
View File
@@ -8,20 +8,21 @@
:placeholder="t('placeholder')"
@click="showPicker = true"
>
<van-popup
v-model="showPicker"
round
slot="extra"
position="bottom"
get-container="body"
>
<van-picker
show-toolbar
:columns="t('textColumns')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
<template #extra>
<van-popup
v-model="showPicker"
round
position="bottom"
get-container="body"
>
<van-picker
show-toolbar
:columns="t('textColumns')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
</template>