UNPKG
wj-ui
Version:
latest (1.0.0)
1.0.0
wj-ui
/
index.js
13 lines
(10 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
testNpmPackage
from
'./testNpmPackage.vue'
const
npmObj={
install
(
Vue
,options) {
Vue
.
component
(testNpmPackage.
name
,testNpmPackage) } }
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
){
window
.
Vue
.
use
(npmObj) }
export
default
npmObj