index.axml 875 B

1234567891011121314151617181920212223242526272829303132333435
  1. <import-sjs
  2. from="./index.sjs"
  3. name="result" />
  4. <view
  5. class="ant-result {{ className ? className : '' }}"
  6. style="{{ style || '' }}">
  7. <view class="ant-result-main">
  8. <slot name="image">
  9. <view
  10. a:if="{{ type }}"
  11. class="ant-result-image">
  12. <icon
  13. type="{{ result.iconType(type) }}"
  14. className="ant-result-image-{{ type }}"
  15. style="font-size: 64px" />
  16. </view>
  17. <image-icon
  18. a:elif="{{ image }}"
  19. className="ant-result-image"
  20. image="{{ image }}" />
  21. <block a:else />
  22. </slot>
  23. <view class="ant-result-title">
  24. <slot name="title">{{ title }}</slot>
  25. </view>
  26. <view class="ant-result-message">
  27. <slot name="message">
  28. <!-- display: inline -->
  29. <text>{{ message }}</text>
  30. </slot>
  31. </view>
  32. </view>
  33. <slot name="extra" />
  34. </view>