index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <view
  2. class="ant-popover {{ showMask && mixin.value ? 'ant-popover-children' : '' }} {{ className ? className : '' }}"
  3. style="{{ style || '' }}">
  4. <view
  5. id="ant-popover-children{{ $id ? '-' + $id : '' }}"
  6. bind:tap="onVisibleChange">
  7. <view id="ant-popover-children-container">
  8. <slot />
  9. </view>
  10. </view>
  11. <view
  12. wx:if="{{ !destroyOnClose || mixin.value }}"
  13. hidden="{{ !mixin.value }}"
  14. id="ant-popover-content{{ $id ? '-' + $id : '' }}"
  15. class="ant-popover-content ant-popover-{{ adjustedPlacement }}"
  16. style="{{ popoverContentStyle }}; {{ adjustedPlacement ? '' : 'opacity: 0' }}">
  17. <view
  18. class="ant-popover-arrow ant-popover-{{ adjustedPlacement }}-arrow"
  19. style="{{ color ? 'border-bottom-color:' + color : '' }}" />
  20. <view
  21. class="ant-popover-inner {{ contentClassName || '' }}"
  22. style="{{ color ? 'background:' + color : '' }};{{ contentStyle || '' }}">
  23. <slot
  24. wx:if="{{ !content }}"
  25. name="content" />
  26. {{ content }}
  27. </view>
  28. </view>
  29. </view>
  30. <mask
  31. show="{{ showMask && mixin.value }}"
  32. id="ant-popover-mask{{ $id ? '-' + $id : '' }}"
  33. className="ant-popover-mask {{ maskClassName || '' }}"
  34. style="{{ maskStyle }}"
  35. bind:masktap="onVisibleChange" />