1 | import Editor from './components/editor'
|
2 | import log from './utils/log'
|
3 |
|
4 | import config from '../package.json'
|
5 |
|
6 | const version = config.version // version_ to fix tsc issue
|
7 |
|
8 | const install = function (app, options = {}) {
|
9 |
|
10 | app.component(Editor.name, Editor)
|
11 |
|
12 | if (!options.disabledDoc) {
|
13 | log.printVersion(config.name, config.version, config.homepage, '#722ed1')
|
14 | }
|
15 | return app
|
16 | }
|
17 |
|
18 | export { Editor }
|
19 |
|
20 | export default { version, install }
|