logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

popover.vue (1086B)


  1. <template>
  2. <span
  3. class="popover-wrapper"
  4. @mouseenter="onMouseenter"
  5. @mouseleave="onMouseleave"
  6. >
  7. <button
  8. ref="trigger"
  9. class="popover-trigger-button"
  10. :class="normalButton ? 'button-default btn' : 'button-unstyled'"
  11. type="button"
  12. v-bind="triggerAttrs"
  13. @click="onClick"
  14. >
  15. <slot name="trigger" />
  16. </button>
  17. <teleport
  18. :disabled="!teleport"
  19. to="#popovers"
  20. >
  21. <transition name="fade">
  22. <div
  23. v-if="!hidden"
  24. ref="content"
  25. :style="styles"
  26. class="popover"
  27. :class="popoverClass || 'popover-default'"
  28. @mouseenter="onMouseenterContent"
  29. @mouseleave="onMouseleaveContent"
  30. @click="onClickContent"
  31. >
  32. <slot
  33. name="content"
  34. class="popover-inner"
  35. :close="hidePopover"
  36. :resize="resizePopover"
  37. />
  38. </div>
  39. </transition>
  40. </teleport>
  41. </span>
  42. </template>
  43. <script src="./popover.js" />
  44. <style src="./popover.scss" lang="scss"></style>