UNPKG
@sube126/test
Version:
latest (0.1.0)
0.1.0
just test vue component js
@sube126/test
/
src
/
index.js
12 lines
(8 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
App
from
'./app'
;
const
install
= (
Vue
) => {
if
(install.
installed
)
return
; install.
installed
=
true
;
Vue
.
component
(
App
.
name
,
App
); };
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
)
install
(
window
.
Vue
);
export
default
{ install,
App
};