1234567891011121314151617181920212223242526272829303132 |
- <import-sjs
- from="./index.sjs"
- name="componentUtils" />
- <label
- class="ant-radio-item {{ className || '' }}"
- style="{{ style }}">
- <view class="ant-radio-item-container">
- <view class="ant-radio-item-wrap">
- <radio
- value="{{ value }}"
- class="ant-radio-item-base"
- onChange="onChange"
- checked="{{ mixin.value }}"
- disabled="{{ disabled }}" />
- <view class="ant-radio-item-fake">
- <view
- class="ant-radio-item-fake-{{ componentUtils.getClassName(mixin.value, disabled) }}"
- style="{{ mixin.value && !disabled && color ? 'background:' + color : '' }}">
- <ant-icon
- a:if="{{ mixin.value }}"
- type="CheckOutline"
- className="ant-radio-item-fake-{{ componentUtils.getClassName(mixin.value, disabled) }}-icon" />
- </view>
- </view>
- </view>
- <view
- class="ant-radio-item-content {{ disabled ? 'ant-radio-item-disabled' : '' }}">
- <slot />
- </view>
- </view>
- </label>
|