Skip to content

Commit

Permalink
fix: global component name #161
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Jul 27, 2022
1 parent 1910d83 commit 7434c84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v6.0.2 (2022-07-27)

- fix: Use the correct global component name [#161](https://github.com/surmon-china/vue-codemirror/discussions/161)

### v6.0.1 (2022-07-22)

- feat: add `autoDestroy` prop for [#156](https://github.com/surmon-china/vue-codemirror/pull/156).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-codemirror",
"description": "CodeMirror code editor component for Vue",
"version": "6.0.1",
"version": "6.0.2",
"homepage": "https://github.com/surmon-china/vue-codemirror#readme",
"license": "MIT",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export { DEFAULT_CONFIG } from './config'
export const Codemirror = Component
export const install: Plugin = (app, defaultConfig?: Props) => {
app.component(Component.name, Component)
app.component('Codemirror', Component)
injectGlobalConfig(app, defaultConfig)
}

Expand Down

0 comments on commit 7434c84

Please sign in to comment.