UNPKG
zyz-image
Version:
latest (1.0.0)
1.0.0
A Vue.js project
zyz-image
/
src
/
plugin
/
vue-image.js
13 lines
(10 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
vue_image
from
'../components/vue-image.vue'
const
VueImage
= {
install
(
Vue, options
) {
Vue
.
component
(vue_image.
name
, vue_image); } }
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
) {
window
.
Vue
.
use
(
VueImage
) }
export
default
VueImage
;