directive.mjs 496 B

12345678910111213141516171819
  1. const attachEvents = (el, binding) => {
  2. const popperComponent = binding.arg || binding.value;
  3. const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
  4. if (popover) {
  5. popover.triggerRef = el;
  6. }
  7. };
  8. var PopoverDirective = {
  9. mounted(el, binding) {
  10. attachEvents(el, binding);
  11. },
  12. updated(el, binding) {
  13. attachEvents(el, binding);
  14. }
  15. };
  16. const VPopover = "popover";
  17. export { VPopover, PopoverDirective as default };
  18. //# sourceMappingURL=directive.mjs.map