bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
22 lines (21 loc) • 603 B
JavaScript
import { reactive, readonly, computed } from "vue";
import { g as globalShowHideStorageInjectionKey } from "../../../keys-BZewGSMQ.mjs";
const showHidePlugin = {
install(app) {
const values = reactive({});
const fun = ({ id, value, toggle, show, hide }) => {
values[id] = computed(() => ({ value: value.value, toggle, show, hide }));
return {
unregister() {
delete values[id];
}
};
};
fun.map = readonly(values);
app.provide(globalShowHideStorageInjectionKey, fun);
}
};
export {
showHidePlugin
};
//# sourceMappingURL=index.mjs.map