审查视图

miniprogram_npm/@vant/weapp/switch/index.wxml 483 字节
倪静楠 authored
1 2 3 4 5 6 7 8 9 10 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>