mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[new feature] Slider: add button slot (#2373)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user