Loading src/functions/popper.js 0 → 100644 +18 −0 Original line number Diff line number Diff line export const props = { content: { type: String, default: null, }, }; export const setup = (props, mapRef) => { const options = {}; const methods = { setContent(newVal) { if (mapRef.value && newVal !== null && newVal !== undefined) { mapRef.value.setContent(newVal); } }, }; return { options, methods }; }; src/functions/tooltip.js 0 → 100644 +16 −0 Original line number Diff line number Diff line import { onBeforeUnmount } from "vue"; import { props as popperProps, setup as popperSetup } from "./popper"; export const props = { ...popperProps, }; export const setup = (props, mapRef, context, lMethods) => { const { options, methods } = popperSetup(props, mapRef); onBeforeUnmount(() => { lMethods.unbindTooltip(); }); return { options, methods }; }; Loading
src/functions/popper.js 0 → 100644 +18 −0 Original line number Diff line number Diff line export const props = { content: { type: String, default: null, }, }; export const setup = (props, mapRef) => { const options = {}; const methods = { setContent(newVal) { if (mapRef.value && newVal !== null && newVal !== undefined) { mapRef.value.setContent(newVal); } }, }; return { options, methods }; };
src/functions/tooltip.js 0 → 100644 +16 −0 Original line number Diff line number Diff line import { onBeforeUnmount } from "vue"; import { props as popperProps, setup as popperSetup } from "./popper"; export const props = { ...popperProps, }; export const setup = (props, mapRef, context, lMethods) => { const { options, methods } = popperSetup(props, mapRef); onBeforeUnmount(() => { lMethods.unbindTooltip(); }); return { options, methods }; };