Files
core/hwe/ts/util/installVue3Components.ts
Hide_D 761b91b7db fix, refac: bvn에 맞게 tooltip directive 변경
- installVue3Component로 통합
- boostrap-vue-next 0.7.3 directive 문제 우회
2023-03-19 14:41:09 +09:00

17 lines
571 B
TypeScript

import { BootstrapVueNext, BToastPlugin } from "bootstrap-vue-next";
import { Directives } from "bootstrap-vue-next";
import type { App } from "vue";
import Multiselect from "vue-multiselect";
export function installVue3Components<T>(app: App<T>): App<T> {
app.use(BootstrapVueNext).use(BToastPlugin).component('v-multiselect', Multiselect);
for (const [name, directive] of Object.entries(Directives)) {
//BVN 0.7.3 directive 이름 hack
if (!name.startsWith('v')) {
continue;
}
app.directive(name.substring(1), directive);
}
return app;
}