docs: remove legacy slot usage

This commit is contained in:
chenjiahan
2020-08-15 07:27:35 +08:00
parent b6e42d2344
commit 272a89423e
12 changed files with 78 additions and 68 deletions

View File

@@ -30,7 +30,9 @@
<demo-block :title="t('withCell')">
<van-cell center :title="t('title')">
<van-switch v-model="checked5" slot="right-icon" size="24" />
<template #right-icon>
<van-switch v-model="checked5" size="24" />
</template>
</van-cell>
</demo-block>
</demo-section>