vant
This commit is contained in:
11
utils/dist/switch/index.wxml
vendored
Normal file
11
utils/dist/switch/index.wxml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view
|
||||
class="custom-class {{ utils.bem('switch', { on: value === activeValue, disabled }) }}"
|
||||
style="font-size: {{ size }}; {{ (checked ? activeColor : inactiveColor) ? 'background-color: ' + (checked ? activeColor : inactiveColor ) : '' }}"
|
||||
bind:tap="onClick"
|
||||
>
|
||||
<view class="van-switch__node node-class">
|
||||
<van-loading wx:if="{{ loading }}" color="{{ loadingColor }}" custom-class="van-switch__loading" />
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user