index.wxml 861 B

1234567891011121314151617181920212223242526272829303132
  1. <wxs src="./index.wxs" module="computed" />
  2. <nut-overlay
  3. wx:if="{{ overlay }}"
  4. show="{{ show }}"
  5. zIndex="{{zIndex}}"
  6. duration="{{duration}}"
  7. overlay-style="{{overlayStyle}}"
  8. bind:click="onClickOverlay"
  9. />
  10. <nut-transition
  11. name="{{ computed.animationName({position})}}"
  12. show='{{ show }}'
  13. custom-class="{{computed.classes({position,popClass,round})}}"
  14. custom-style='z-index:{{zIndex}};{{popStyle}}'
  15. bind:tap='onClick'
  16. duration='{{duration}}'>
  17. <slot></slot>
  18. <view
  19. wx:if="{{closeable}}"
  20. bindtap="onClickCloseIcon"
  21. class="nut-popup__close-icon {{'nut-popup__close-icon--' + closeIconPosition}}"
  22. >
  23. <nut-icon name="{{closeIcon}}"></nut-icon>
  24. <!-- <slot name="close-icon">
  25. <Close height="12px"></Close>
  26. </slot> -->
  27. </view>
  28. </nut-transition>