opnform/resources/js/components/index.js

22 lines
494 B
JavaScript
Raw Normal View History

2022-09-20 19:59:52 +00:00
import './common'
import './forms'
import Vue from 'vue'
import Child from './Child.vue'
import Modal from './Modal.vue'
2022-09-20 19:59:52 +00:00
import Loader from './common/Loader.vue'
2022-09-20 19:59:52 +00:00
// Components that are registered globaly.
[
Child,
Modal,
Loader
].forEach(Component => {
Vue.component(Component.name, Component)
})
2022-12-15 15:59:53 +00:00
// Lazy load some heavy component
Vue.component('FormEditor', () => import('./open/forms/components/FormEditor.vue'))
Vue.component('NotionPage', () => import('./open/NotionPage.vue'))