vant-weapp/dist/checkbox/index.wxml
2018-11-10 16:49:17 +08:00

17 lines
492 B
Plaintext

<view class="van-checkbox custom-class">
<view class="van-checkbox__icon-wrap" bindtap="toggle">
<slot wx:if="{{ useIconSlot }}" name="icon" />
<van-icon
wx:else
name="success"
class="{{ iconClass }}"
style="{{ iconStyle }}"
custom-class="icon-class"
custom-style="line-height: 20px;"
/>
</view>
<view class="van-checkbox__label van-checkbox__label--{{ labelPosition }} label-class" bindtap="onClickLabel">
<slot />
</view>
</view>