vue-schedule-selector
Version:
this is a schedule selector for vue
25 lines (19 loc) • 474 B
JavaScript
import ScheduleSelector from './ScheduleSelector'
export function install (Vue) {
if (install.installed) return
install.installed = true
Vue.component('ScheduleSelector', ScheduleSelector)
}
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)
}
export default ScheduleSelector