index.js 408 B

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