index.axml 975 B

123456789101112131415161718192021222324
  1. <import-sjs
  2. from="./index.sjs"
  3. name="utils" />
  4. <view
  5. a:if="{{ !destroyOnClose || visible || closing }}"
  6. class="ant-popup {{ className || '' }}"
  7. style="{{ zIndex ? 'z-index:' + zIndex : '' }};{{ style || '' }}"
  8. hidden="{{ !destroyOnClose && !visible && !closing }}">
  9. <view
  10. a:if="{{ showMask }}"
  11. class="ant-popup-mask {{ maskClassName || '' }} {{ closing && !visible ? 'ant-popup-mask-closing' : '' }}"
  12. onTap="onTapMask"
  13. style="{{ animation ? '-webkit-animation-duration:' + duration + 'ms; animation-duration:' + duration + 'ms;' : '' }} {{ maskStyle || '' }}" />
  14. <view
  15. class="ant-popup-content ant-popup-{{ animationType }}-{{ position }} {{ closing ? 'ant-popup-' + animationType + '-' + position + '-close' : '' }}"
  16. style="{{ utils.getContentStyle(position, animation, duration, width, height) }}"
  17. onAnimationEnd="onAnimationEnd">
  18. <slot />
  19. <slot
  20. a:if="{{ isOldVersion }}"
  21. name="content" />
  22. </view>
  23. </view>