docs: remove legacy slot usage
This commit is contained in:
@@ -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,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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user