index.wxml 1.3 KB

1234567891011121314151617181920212223242526
  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 }}" in="{{ popupVisible }}" classNames="{{ transitionName }}" bind:exited="onExited" wrapStyle="{{ { zIndex } }}">
  4. <view class="wux-content-class {{ classes.content }}">
  5. <view class="wux-header-class {{ classes.hd }}">
  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 }}">
  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>