mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[Doc] use v-slot in demos (#3573)
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
<demo-block :title="$t('titleSlot')">
|
||||
<van-collapse v-model="active3">
|
||||
<van-collapse-item>
|
||||
<div slot="title">{{ $t('title') + 1 }}<van-icon name="question-o" /></div>
|
||||
<template v-slot:title>
|
||||
<div>{{ $t('title') + 1 }}<van-icon name="question-o" /></div>
|
||||
</template>
|
||||
{{ $t('text') }}
|
||||
</van-collapse-item>
|
||||
<van-collapse-item
|
||||
|
Reference in New Issue
Block a user