index.axml 668 B

12345678910
  1. <view class='switch-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class="{{customClass}} {{ utils.bem('switch', { on: value === activeValue, disabled }) }}" style="font-size: {{ size }}; {{ (checked ? activeColor : inactiveColor) ? 'background-color: ' + (checked ? activeColor : inactiveColor ) : '' }}" onTap='antmoveAction' data-antmove-tap='onClick'>
  5. <view class='van-switch__node {{nodeClass}}'>
  6. <van-loading a:if='{{ loading }}' color='{{ loadingColor }}' custom-class='van-switch__loading' ref='saveChildRef1'>
  7. </van-loading>
  8. </view>
  9. </view>
  10. </view>