index.wxml 790 B

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