<view class="box">
  <view class="title">{{title}}</view>
  <view class="rep">
    <view class="switch" wx:if="{{type=='switch'}}">
      <text catchtap='changeSwitch'>{{switchLabel}}</text>
      <van-switch checked="{{ switch }}" size='44rpx' catchtap='changeSwitch' />
    </view>
    <slot wx:else />
  </view>
</view>