mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[Doc] Demo: use v-slot shorthand (#3574)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user