diff --git a/src/plugins/vue-imgix/index.ts b/src/plugins/vue-imgix/index.ts index a8aaa953..cbcabe80 100644 --- a/src/plugins/vue-imgix/index.ts +++ b/src/plugins/vue-imgix/index.ts @@ -1,17 +1,17 @@ -import _Vue from 'vue'; +import { app } from '@/main' import { IxPicture } from './ix-picture'; import { IxSource } from './ix-source'; import { IVueUseImgixOptions } from './types'; import { initVueImgix, IxImg } from './vue-imgix'; // Declare install function executed by Vue.use() -export function install(Vue: typeof _Vue, options: IVueUseImgixOptions) { +export function install(_app: typeof app, options: IVueUseImgixOptions) { if (install.installed) return; install.installed = true; initVueImgix(options); - Vue.component('ix-img', IxImg); - Vue.component('ix-picture', IxPicture); - Vue.component('ix-source', IxSource); + _app.component('ix-img', IxImg); + _app.component('ix-picture', IxPicture); + _app.component('ix-source', IxSource); } install.installed = false;