mirror of
https://github.com/youzan/vant.git
synced 2026-04-17 02:06:57 +08:00
[Doc] Demo: use v-slot shorthand (#3574)
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
<demo-block :title="$t('titleSlot')">
|
||||
<van-collapse v-model="active3">
|
||||
<van-collapse-item>
|
||||
<template v-slot:title>
|
||||
<div>{{ $t('title') + 1 }}<van-icon name="question-o" /></div>
|
||||
<template #title>
|
||||
{{ $t('title') + 1 }}<van-icon name="question-o" />
|
||||
</template>
|
||||
{{ $t('text') }}
|
||||
</van-collapse-item>
|
||||
|
||||
Reference in New Issue
Block a user