mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
17 lines
553 B
Plaintext
17 lines
553 B
Plaintext
<view class="van-radio custom-class">
|
|
<view class="van-radio__input">
|
|
<radio-group bindchange="onChange">
|
|
<radio
|
|
value="{{ name }}"
|
|
checked="{{ value === name }}"
|
|
disabled="{{ disabled }}"
|
|
class="van-radio__control"
|
|
/>
|
|
</radio-group>
|
|
<van-icon class="{{ iconClass }}" custom-class="icon-class" name="{{ value === name ? 'checked' : 'check' }}" />
|
|
</view>
|
|
<view class="van-radio__label van-radio__label--{{ labelPosition }} label-class" bindtap="onClickLabel">
|
|
<slot />
|
|
</view>
|
|
</view>
|