[Doc] Demo: use v-slot shorthand (#3574)

This commit is contained in:
neverland
2019-06-20 17:40:57 +08:00
committed by GitHub
parent d9f2ad6759
commit 5b12d80d97
20 changed files with 36 additions and 39 deletions

View File

@@ -48,13 +48,13 @@
>
<van-radio name="1">
{{ $t('radio') }} 1
<template v-slot:icon="{ checked }">
<template #icon="{ checked }">
<img :src="checked ? icon.active : icon.inactive">
</template>
</van-radio>
<van-radio name="2">
{{ $t('radio') }} 2
<template v-slot:icon="{ checked }">
<template #icon="{ checked }">
<img :src="checked ? icon.active : icon.inactive">
</template>
</van-radio>