index.axml 430 B

1234567891011121314151617
  1. <import-sjs
  2. from="./index.sjs"
  3. name="helper" />
  4. <view class="ant-imageIcon {{ className ? className : '' }}">
  5. <icon
  6. a:if="{{ helper.isIcon(image) }}"
  7. type="{{ image }}"
  8. className="{{ className ? className + '-icon' : '' }}"
  9. style="{{ style }}" />
  10. <image
  11. a:else
  12. src="{{ image }}"
  13. class="{{ className ? className + '-image' : '' }}"
  14. style="{{ style || '' }}"
  15. mode="aspectFit" />
  16. </view>