UNPKG

vue-kityminder-ggg

Version:

百度脑图

21 lines (18 loc) 552 B
import '../static/kity' import '../static/kityminder.core.min' import Editor from './components/editor' import "./styles/hotbox.less" // import "hotboxkit/less/hotbox.less" const MindEditor = { Minder: Editor }; const install = function(Vue, opts = {}) { Object.keys(MindEditor).forEach((key) => { Vue.component(key, MindEditor[key]); }); }; // auto install if(typeof window !== 'undefined' && window.Vue) { install(window.Vue); } export default Object.assign(MindEditor, {install}); // eslint-disable-line no-undef