directive.mjs 476 B

123456789101112131415161718
  1. //#region ../../packages/components/popover/src/directive.ts
  2. const attachEvents = (el, binding) => {
  3. const popover = (binding.arg || binding.value)?.popperRef;
  4. if (popover) popover.triggerRef = el;
  5. };
  6. var directive_default = {
  7. mounted(el, binding) {
  8. attachEvents(el, binding);
  9. },
  10. updated(el, binding) {
  11. attachEvents(el, binding);
  12. }
  13. };
  14. const VPopover = "popover";
  15. //#endregion
  16. export { VPopover, directive_default as default };
  17. //# sourceMappingURL=directive.mjs.map