bin-editor-next
Version:
基于vue的代码编辑器插件
21 lines (13 loc) • 460 B
JavaScript
import Editor from './components/editor'
import log from './utils/log'
import config from '../package.json'
const version = config.version // version_ to fix tsc issue
const install = function (app, options = {}) {
app.component(Editor.name, Editor)
if (!options.disabledDoc) {
log.printVersion(config.name, config.version, config.homepage, '#722ed1')
}
return app
}
export { Editor }
export default { version, install }