mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Doc] Demo: use v-slot shorthand (#3574)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<demo-block :title="$t('customIcon')">
|
||||
<van-checkbox v-model="checkbox3">
|
||||
{{ $t('customIcon') }}
|
||||
<template v-slot:icon="{ checked }">
|
||||
<template #icon="{ checked }">
|
||||
<img :src="checked ? icon.active : icon.inactive">
|
||||
</template>
|
||||
</van-checkbox>
|
||||
|
Reference in New Issue
Block a user