index.wxml 857 B

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