[发布优惠券提货券index报错]
This commit is contained in:
20
components/vue-canvas-poster/index.js
Normal file
20
components/vue-canvas-poster/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import VueCanvasPoster from './canvas-poster'
|
||||
|
||||
export function install(Vue) {
|
||||
Vue.component('vue-canvas-poster', VueCanvasPoster)
|
||||
}
|
||||
export { VueCanvasPoster }
|
||||
const myPlugin = {
|
||||
install
|
||||
}
|
||||
export default myPlugin
|
||||
// Auto-install
|
||||
let GlobalVue = null
|
||||
if (typeof window !== 'undefined') {
|
||||
GlobalVue = window.Vue
|
||||
} else if (typeof global !== 'undefined') {
|
||||
GlobalVue = global.Vue
|
||||
}
|
||||
if (GlobalVue) {
|
||||
GlobalVue.use(myPlugin)
|
||||
}
|
||||
Reference in New Issue
Block a user