[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
+3 -6
View File
@@ -45,12 +45,9 @@
v-model="value6"
active-color="#f44"
>
<div
slot="button"
class="custom-button"
>
{{ value6 }}
</div>
<template v-slot:button>
<div class="custom-button">{{ value6 }}</div>
</template>
</van-slider>
</demo-block>
@@ -51,9 +51,7 @@ exports[`renders demo correctly 1`] = `
<div class="van-slider">
<div class="van-slider__bar" style="width: 50%; height: 2px; background: rgb(255, 68, 68);">
<div role="slider" tabindex="0" aria-valuemin="0" aria-valuenow="50" aria-valuemax="100" aria-orientation="horizontal" class="van-slider__button-wrapper">
<div class="custom-button">
50
</div>
<div class="custom-button">50</div>
</div>
</div>
</div>