[Doc] use v-slot in demos (#3573)

This commit is contained in:
neverland
2019-06-20 17:32:00 +08:00
committed by GitHub
parent 729b9dac4b
commit d9f2ad6759
25 changed files with 141 additions and 170 deletions

View File

@@ -92,7 +92,7 @@
icon="shop-o"
is-link
>
<template slot="title">
<template v-slot:title>
<span class="custom-text">{{ $t('cell') }}</span>
<van-tag type="danger">{{ $t('tag') }}</van-tag>
</template>
@@ -104,7 +104,7 @@
/>
<van-cell :title="$t('cell')">
<van-icon
slot="right-icon"
v-slot:right-icon
name="search"
class="custom-icon"
/>