Skip to content
Snippets Groups Projects
Commit acfbff6f authored by Julian's avatar Julian
Browse files

Use other name for imported plugin

parent 959353b8
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
import plugin from "../../src/index.js" import draggableGrid from "../../src/index.js";
export default ({ export default ({
Vue, // the version of Vue being used in the VuePress app Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance options, // the options for the root Vue instance
router, // the router instance for the app router, // the router instance for the app
siteData, // site metadata siteData, // site metadata
isServer // is this enhancement applied in server-rendering or client isServer, // is this enhancement applied in server-rendering or client
}) => { }) => {
Vue.use(plugin); Vue.use(draggableGrid);
} };
...@@ -10,9 +10,9 @@ Install the package `vue-draggable-grid` via your favourite package manager. ...@@ -10,9 +10,9 @@ Install the package `vue-draggable-grid` via your favourite package manager.
Include the library in your project: Include the library in your project:
```javascript ```javascript
import plugin from 'vue-draggable-grid'; import draggableGrid from "vue-draggable-grid";
Vue.use(plugin); Vue.use(draggableGrid);
// Now create your app as usual // Now create your app as usual
``` ```
......
import Vue from "vue"; import Vue from "vue";
import App from "./App.vue"; import App from "./App.vue";
import plugin from "../../src/index.js"; import draggableGrid from "../../src/index.js";
import "./assets/main.css"; import "./assets/main.css";
Vue.use(plugin); Vue.use(draggableGrid);
new Vue({ new Vue({
render: (h) => h(App), render: (h) => h(App),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment