vant-weapp/dist/switch/index.wxml
2018-04-28 12:08:10 +08:00

13 lines
392 B
Plaintext

<view
class="zan-switch zan-switch--{{ checked ? 'on' : 'off' }} {{ disabled ? 'zan-swtich--disabled' : '' }}"
checked="{{ checked }}"
loading="{{ loading }}"
disabled="{{ disabled }}"
bindtap="handleZanSwitchChange"
>
<view class="zan-switch__circle">
<view hidden="{{ !loading }}" class="zan-switch__loading"></view>
</view>
<view class="zan-switch__bg"></view>
</view>