[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

@@ -35,7 +35,7 @@
@submit="onClickButton"
>
<van-checkbox v-model="checked">{{ $t('check') }}</van-checkbox>
<span slot="tip">
<template v-slot:tip>
{{ $t('tip2') }}
<span
class="edit-address"
@@ -43,7 +43,7 @@
>
{{ $t('tip3') }}
</span>
</span>
</template>
</van-submit-bar>
</demo-block>
</demo-section>