index.js 474 B

123456789101112131415161718192021
  1. import MyProcessDesigner from "./designer";
  2. import MyProcessPenal from "./penal";
  3. import MyProcessViewer from './designer/index2';
  4. const components = [MyProcessDesigner, MyProcessPenal, MyProcessViewer];
  5. const install = function(Vue) {
  6. components.forEach(component => {
  7. Vue.component(component.name, component);
  8. });
  9. };
  10. if (typeof window !== "undefined" && window.Vue) {
  11. install(window.Vue);
  12. }
  13. export default {
  14. version: "0.0.1",
  15. install,
  16. ...components
  17. };