UNPKG

jl-datatable

Version:

A datatable server side rendering mode - Vue JS 3 ⚙️

27 lines (21 loc) 527 B
import component from './Main.vue' import "bootstrap/dist/css/bootstrap.min.css"; function install(Vue) { if (install.installed) return install.installed = true Vue.component('Main', 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