UNPKG
tp-base-plugin
Version:
latest (0.0.1)
0.0.1
标准图表组件
tp-base-plugin
/
lib
/
index.js
14 lines
(12 loc)
•
374 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
BasePlugin
from
"../packages/base"
const
install
=
Vue
=> {
Vue
.
component
(
"TPBasePlugin"
,
BasePlugin
);
// 可以在这里注册其他自定义的组件...
}
// 防止使用者直接以<script></script>方式引入
if
(
typeof
window
.
Vue
!==
'undefined'
) {
install
(
Vue
)
// 直接通过script方式引入组件
}
export
default
{ install }