Skip to content

Commit 7434c84

Browse files
committed
fix: global component name #161
1 parent 1910d83 commit 7434c84

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## CHANGELOG
22

3+
### v6.0.2 (2022-07-27)
4+
5+
- fix: Use the correct global component name [#161](https://github.com/surmon-china/vue-codemirror/discussions/161)
6+
37
### v6.0.1 (2022-07-22)
48

59
- feat: add `autoDestroy` prop for [#156](https://github.com/surmon-china/vue-codemirror/pull/156).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-codemirror",
33
"description": "CodeMirror code editor component for Vue",
4-
"version": "6.0.1",
4+
"version": "6.0.2",
55
"homepage": "https://github.com/surmon-china/vue-codemirror#readme",
66
"license": "MIT",
77
"keywords": [

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export { DEFAULT_CONFIG } from './config'
1010
export const Codemirror = Component
1111
export const install: Plugin = (app, defaultConfig?: Props) => {
1212
app.component(Component.name, Component)
13+
app.component('Codemirror', Component)
1314
injectGlobalConfig(app, defaultConfig)
1415
}
1516

0 commit comments

Comments
 (0)