<view 
  class="amd-switch {{className ? className : ''}} amd-switch-{{size}} {{cValue?'amd-switch-checked':''}}  {{disabled?'amd-switch-disabled':''}}   {{loading ? 'amd-switch-loading':''}}"
  style="{{cValue&&color?'background:'+color + '; border-color:' + color:''}};"
  catchTap="onChange">
  <view class="amd-switch-handle">
    <icon type="UndoOutline" a:if="{{loading}}" className="amd-switch-loading-icon"/>
  </view>
  <view class="amd-switch-inner">
    <slot name="checked" a:if="{{cValue}}">{{checkedText}}</slot>
    <slot name="unchecked" a:else>{{uncheckedText}}</slot>
  </view>
</view>