diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index ad123b13f76b772858f7ea16568517861347ea00..5eee540438597b3104f8ac95f4ab979353f384a5 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -1,11 +1,11 @@ -import plugin from "../../src/index.js" +import draggableGrid from "../../src/index.js"; export default ({ - Vue, // the version of Vue being used in the VuePress app - options, // the options for the root Vue instance - router, // the router instance for the app - siteData, // site metadata - isServer // is this enhancement applied in server-rendering or client - }) => { - Vue.use(plugin); -} + Vue, // the version of Vue being used in the VuePress app + options, // the options for the root Vue instance + router, // the router instance for the app + siteData, // site metadata + isServer, // is this enhancement applied in server-rendering or client +}) => { + Vue.use(draggableGrid); +}; diff --git a/docs/guide/index.md b/docs/guide/index.md index 9419ebff1f7bef94de8f5f730fffcb290024d738..357132457877ce2301b64562390d9c0b7c8c8af9 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -10,9 +10,9 @@ Install the package `vue-draggable-grid` via your favourite package manager. Include the library in your project: ```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 ``` diff --git a/example/src/main.js b/example/src/main.js index 5cbd88a67bdcf50bad280d23de8b76b7b682da3a..2131d413d709e613fddf8d70525aac0cd82d7ed3 100644 --- a/example/src/main.js +++ b/example/src/main.js @@ -1,11 +1,11 @@ import Vue from "vue"; import App from "./App.vue"; -import plugin from "../../src/index.js"; +import draggableGrid from "../../src/index.js"; import "./assets/main.css"; -Vue.use(plugin); +Vue.use(draggableGrid); new Vue({ render: (h) => h(App),