index.axml 1017 B

1234567891011121314151617181920212223242526272829303132
  1. <import-sjs
  2. from="./index.sjs"
  3. name="componentUtils" />
  4. <label
  5. class="ant-radio-item {{ className || '' }}"
  6. style="{{ style }}">
  7. <view class="ant-radio-item-container">
  8. <view class="ant-radio-item-wrap">
  9. <radio
  10. value="{{ value }}"
  11. class="ant-radio-item-base"
  12. onChange="onChange"
  13. checked="{{ mixin.value }}"
  14. disabled="{{ disabled }}" />
  15. <view class="ant-radio-item-fake">
  16. <view
  17. class="ant-radio-item-fake-{{ componentUtils.getClassName(mixin.value, disabled) }}"
  18. style="{{ mixin.value && !disabled && color ? 'background:' + color : '' }}">
  19. <ant-icon
  20. a:if="{{ mixin.value }}"
  21. type="CheckOutline"
  22. className="ant-radio-item-fake-{{ componentUtils.getClassName(mixin.value, disabled) }}-icon" />
  23. </view>
  24. </view>
  25. </view>
  26. <view
  27. class="ant-radio-item-content {{ disabled ? 'ant-radio-item-disabled' : '' }}">
  28. <slot />
  29. </view>
  30. </view>
  31. </label>