1 | import DataTable from './src/components/DataTable'
|
2 | import EditItemDialog from './src/components/EditItemDialog'
|
3 | import ConfirmationDialog from './src/components/ConfirmationDialog'
|
4 |
|
5 | export default ({
|
6 | install: (Vue, options) => {
|
7 | Vue.component('DataTable', DataTable)
|
8 | Vue.component('EditItemDialog', EditItemDialog)
|
9 | Vue.component('ConfirmationDialog', ConfirmationDialog)
|
10 |
|
11 | if (window) {
|
12 | window.addEventListener('dragover', function (e) {
|
13 | e = e || event
|
14 | e.preventDefault()
|
15 | }, false)
|
16 | window.addEventListener('drop', function (e) {
|
17 | e = e || event
|
18 | e.preventDefault()
|
19 | }, false)
|
20 | }
|
21 | }
|
22 | })
|