[new feature] Slider: add button slot (#2373)

This commit is contained in:
neverland
2018-12-25 21:43:26 +08:00
committed by GitHub
parent 728a0e26c5
commit 282d8ba27b
8 changed files with 175 additions and 26 deletions

View File

@@ -7,13 +7,17 @@
:class="b('bar')"
:style="barStyle"
>
<span
:class="b('button')"
<div
:class="b('button-wrapper')"
@touchstart="onTouchStart"
@touchmove.prevent.stop="onTouchMove"
@touchend="onTouchEnd"
@touchcancel="onTouchEnd"
/>
>
<slot name="button">
<div :class="b('button')" />
</slot>
</div>
</div>
</div>
</template>