index.js 501 B

1234567891011121314151617181920
  1. import './static/kity'
  2. import './static/kityminder.core.min'
  3. import "hotboxkit/less/hotbox.less"
  4. import Editor from './minder'
  5. const MindEditor = {
  6. Minder: Editor
  7. };
  8. const install = function (Vue, opts = {}) {
  9. Object.keys(MindEditor).forEach((key) => {
  10. Vue.component(key, MindEditor[key]);
  11. });
  12. };
  13. // auto install
  14. if (typeof window !== 'undefined' && window.Vue) {
  15. install(window.Vue);
  16. }
  17. export default Object.assign(MindEditor, {install}); // eslint-disable-line no-undef