bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
3 lines (2 loc) • 772 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../../keys-BgAe7wbu.js"),t={install(t){const p=e.ref(new Map);t.provide(o.tooltipPluginKey,{tooltips:p,show:o=>{const t=e.toRef(o.props),r=Symbol();return e.watch(o.ref,(n=>{n?p.value.set(r,{component:o.component?e.markRaw(o.component):void 0,props:{...t.value,_modelValue:!1,_reference:n}}):p.value.delete(r)}),{immediate:!0}),e.watch(t,(t=>{const n=p.value.get(r);n&&p.value.set(r,{component:o.component?e.markRaw(o.component):void 0,props:{...n.props,...t}})})),r},remove:e=>{p.value.delete(e)},set:(e,o)=>{const t=p.value.get(e);(null==t?void 0:t.props)&&(t.props={...t.props,...o})}})}};exports.tooltipPlugin=t;
//# sourceMappingURL=index.umd.js.map