提交 | 用户 | age
|
d98d05
|
1 |
<wxs src="../wxs/utils.wxs" module="utils" /> |
53cc6f
|
2 |
<wxs src="./index.wxs" module="computed" /> |
d98d05
|
3 |
|
S |
4 |
<view |
53cc6f
|
5 |
class="{{ utils.bem('switch', { on: checked === activeValue, disabled }) }} custom-class" |
S |
6 |
style="{{ computed.rootStyle({ size, checked, activeColor, inactiveColor }) }}" |
d98d05
|
7 |
bind:tap="onClick" |
S |
8 |
> |
|
9 |
<view class="van-switch__node node-class"> |
53cc6f
|
10 |
<van-loading |
S |
11 |
wx:if="{{ loading }}" |
|
12 |
color="{{ computed.loadingColor({ checked, activeColor, inactiveColor }) }}" |
|
13 |
custom-class="van-switch__loading" |
|
14 |
/> |
d98d05
|
15 |
</view> |
S |
16 |
</view> |