mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[Doc] Demo: use v-slot shorthand (#3574)
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
<van-tabbar v-model="active3">
|
||||
<van-tabbar-item info="3">
|
||||
<span>{{ $t('custom') }}</span>
|
||||
<template v-slot:icon="{ active }">
|
||||
<template #icon="{ active }">
|
||||
<img :src="active ? icon.active : icon.normal">
|
||||
</template>
|
||||
</van-tabbar-item>
|
||||
|
Reference in New Issue
Block a user