mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00: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