mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-06 14:12:25 +03:00
20 lines
468 B
JavaScript
20 lines
468 B
JavaScript
import GGanttChart from './components/GGanttChart.vue'
|
|
import GGanttRow from './components/GGanttRow.vue'
|
|
import './scss/index.scss'
|
|
|
|
const VueGanttastic = { GGanttChart, GGanttRow }
|
|
|
|
const install = Vue => {
|
|
Object.keys(VueGanttastic).forEach(name => {
|
|
Vue.component(name, VueGanttastic[name])
|
|
})
|
|
}
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
install(window.Vue)
|
|
}
|
|
|
|
export default VueGanttastic
|
|
|
|
export { GGanttChart, GGanttRow }
|