index.axml 1.1 KB

123456789101112131415161718192021222324252627282930
  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. onTap="onVisibleChange">
  7. <slot />
  8. </view>
  9. <view
  10. a:if="{{ !destroyOnClose || mixin.value }}"
  11. hidden="{{ !mixin.value }}"
  12. id="ant-popover-content{{ $id ? '-' + $id : '' }}"
  13. class="ant-popover-content ant-popover-{{ adjustedPlacement }}"
  14. style="{{ popoverContentStyle }}; {{ adjustedPlacement ? '' : 'opacity: 0' }}">
  15. <view
  16. class="ant-popover-arrow ant-popover-{{ adjustedPlacement }}-arrow"
  17. style="{{ color ? 'border-bottom-color:' + color : '' }}" />
  18. <view
  19. class="ant-popover-inner {{ contentClassName || '' }}"
  20. style="{{ color ? 'background:' + color : '' }};{{ contentStyle || '' }}">
  21. <slot name="content">{{ content }}</slot>
  22. </view>
  23. </view>
  24. </view>
  25. <mask
  26. show="{{ showMask && mixin.value }}"
  27. id="ant-popover-mask{{ $id ? '-' + $id : '' }}"
  28. className="ant-popover-mask {{ maskClassName || '' }}"
  29. style="{{ maskStyle }}"
  30. onMaskTap="onVisibleChange" />