index.js 388 B

12345678910111213141516171819
  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. install,
  14. ...components
  15. };