提交 | 用户 | 时间
|
759b1c
|
1 |
import MyProcessDesigner from "./designer"; |
H |
2 |
import MyProcessPenal from "./penal"; |
|
3 |
import MyProcessViewer from './designer/index2'; |
|
4 |
|
|
5 |
const components = [MyProcessDesigner, MyProcessPenal, MyProcessViewer]; |
|
6 |
|
|
7 |
const install = function(Vue) { |
|
8 |
components.forEach(component => { |
|
9 |
Vue.component(component.name, component); |
|
10 |
}); |
|
11 |
}; |
|
12 |
|
|
13 |
if (typeof window !== "undefined" && window.Vue) { |
|
14 |
install(window.Vue); |
|
15 |
} |
|
16 |
|
|
17 |
export default { |
|
18 |
version: "0.0.1", |
|
19 |
install, |
|
20 |
...components |
|
21 |
}; |