mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
13 lines
392 B
Plaintext
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>
|