index.wxml 1.4 KB

123456789101112131415161718192021222324252627
  1. <wux-backdrop id="wux-backdrop" wx:if="{{ mask }}" bind:click="onMaskClick" zIndex="{{ zIndex }}" />
  2. <view class="wux-class {{ classes.wrap }}" style="{{ extStyle }}">
  3. <wux-animation-group wux-class="{{ prefixCls }} {{ newPrefixCls }}" in="{{ popupVisible }}" classNames="{{ transitionName }}" bind:exited="onExited" wrapStyle="{{ { zIndex } }}" mountOnEnter="{{ mountOnEnter }}" unmountOnExit="{{ unmountOnExit }}">
  4. <view class="wux-content-class {{ classes.content }}">
  5. <view class="wux-header-class {{ classes.hd }}" wx:if="{{ hasHeader }}">
  6. <view class="{{ classes.title }}" wx:if="{{ title }}">{{ title }}</view>
  7. <block wx:else>
  8. <slot name="header"></slot>
  9. </block>
  10. </view>
  11. <view class="wux-body-class {{ classes.bd }}">
  12. <view wx:if="{{ content }}">{{ content }}</view>
  13. <slot></slot>
  14. </view>
  15. <view class="wux-footer-class {{ classes.ft }}" wx:if="{{ hasFooter }}">
  16. <view class="{{ classes.extra }}" wx:if="{{ extra }}">{{ extra }}</view>
  17. <block wx:else>
  18. <slot name="footer"></slot>
  19. </block>
  20. </view>
  21. <view class="wux-close-class {{ classes.close }}" wx:if="{{ closable }}" bindtap="close">
  22. <text class="{{ classes.x }}"></text>
  23. </view>
  24. </view>
  25. </wux-animation-group>
  26. </view>