mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
微信登录版
This commit is contained in:
30
wechat_v2/miniprogram_npm/@vant/weapp/slider/index.wxml
Normal file
30
wechat_v2/miniprogram_npm/@vant/weapp/slider/index.wxml
Normal file
@@ -0,0 +1,30 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
<wxs src="../wxs/style.wxs" module="style" />
|
||||
|
||||
<view
|
||||
class="custom-class {{ utils.bem('slider', { disabled }) }}"
|
||||
style="{{ style({ background: inactiveColor, height: utils.addUnit(barHeight) }) }}"
|
||||
bind:tap="onClick"
|
||||
>
|
||||
<view
|
||||
class="{{ utils.bem('slider__bar') }}"
|
||||
style="{{ barStyle }}; {{ style({ backgroundColor: activeColor }) }}"
|
||||
>
|
||||
<view
|
||||
class="{{ utils.bem('slider__button-wrapper') }}"
|
||||
bind:touchstart="onTouchStart"
|
||||
catch:touchmove="onTouchMove"
|
||||
bind:touchend="onTouchEnd"
|
||||
bind:touchcancel="onTouchEnd"
|
||||
>
|
||||
<slot
|
||||
wx:if="{{ useButtonSlot }}"
|
||||
name="button"
|
||||
/>
|
||||
<view
|
||||
wx:else
|
||||
class="{{ utils.bem('slider__button') }}"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user