From acfbff6fc2d219f6aade4cd56c08f5d6f5515881 Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Fri, 3 Mar 2023 21:28:21 +0100 Subject: [PATCH] Use other name for imported plugin --- docs/.vuepress/enhanceApp.js | 18 +++++++++--------- docs/guide/index.md | 4 ++-- example/src/main.js | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index ad123b1..5eee540 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 9419ebf..3571324 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 5cbd88a..2131d41 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), -- GitLab