1 | import VueGoodTable from './components/Table.vue';
|
2 |
|
3 | const VueGoodTablePlugin = {
|
4 | install(Vue, options) {
|
5 | Vue.component(VueGoodTable.name, VueGoodTable);
|
6 | },
|
7 | };
|
8 |
|
9 | // Automatic installation if Vue has been added to the global scope.
|
10 | if (typeof window !== 'undefined' && window.Vue) {
|
11 | window.Vue.use(VueGoodTablePlugin);
|
12 | }
|
13 |
|
14 | export default VueGoodTablePlugin;
|
15 | export { VueGoodTable };
|