UNPKG

vuetify-draggable-treeview

Version:

draggable v-treeview component

26 lines (20 loc) 489 B
import component from "./DraggableTreeview.vue"; export const install = (Vue) => { if (install.installed) return; install.installed = true; Vue.component("VDraggableTreeview", component); }; const plugin = { install, }; let GlobalVue = null; if (typeof window !== "undefined") { GlobalVue = window.Vue; } else if (typeof global !== "undefined") { GlobalVue = global.Vue; } if (GlobalVue) { GlobalVue.use(plugin); } component.install = install; export default component;