Skip to content

Commit 44110a6

Browse files
committed
docs:Modify the document details
1 parent a355314 commit 44110a6

23 files changed

+2771
-5008
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ For complete documentation and more cases, please check [codemirror-editor-vue3
1616
## Install
1717

1818
```bash
19-
npm install codemirror-editor-vue3 codemirror@5.6.0 -S
19+
npm install codemirror-editor-vue3 codemirror@5.x -S
2020
```
2121

2222
```bash
23-
yarn add codemirror-editor-vue3 codemirror@5.6.0
23+
yarn add codemirror-editor-vue3 codemirror@5.x
2424
```
2525

2626
```bash
27-
pnpm i codemirror-editor-vue3 codemirror@5.6.0 -S
27+
pnpm i codemirror-editor-vue3 codemirror@5.x -S
2828
```
2929

3030
> If your project requires Typescript support, you will also need to install the '@types/codemirror' dependency.
@@ -42,17 +42,17 @@ npm install @types/codemirror@5.60.5 -D
4242
```js
4343
import { createApp } from "vue";
4444
import App from "./App.vue";
45-
import { GlobalCmComponent } from "codemirror-editor-vue3";
45+
import { InstallCodemirro } from "codemirror-editor-vue3";
4646

4747
const app = createApp(App);
48-
app.use(GlobalCmComponent);
48+
app.use(InstallCodemirro);
4949
app.mount("#app");
5050
```
5151

5252
The global registered component name is Codemirror or you can customize a component name, for example:
5353

5454
```js
55-
app.use(GlobalCmComponent, { componentName: "customName" });
55+
app.use(InstallCodemirro, { componentName: "customName" });
5656
```
5757

5858
## Use in components

docs/.vitepress/cache/deps/_metadata.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,51 @@
11
{
2-
"hash": "8c9ba250",
3-
"browserHash": "7a8cf26b",
2+
"hash": "e3408a0c",
3+
"browserHash": "d1738428",
44
"optimized": {
55
"vue": {
66
"src": "../../../../node_modules/.pnpm/vue@3.2.47/node_modules/vue/dist/vue.runtime.esm-bundler.js",
77
"file": "vue.js",
8-
"fileHash": "06fd4366",
8+
"fileHash": "c80a9235",
99
"needsInterop": false
1010
},
1111
"codemirror/mode/javascript/javascript.js": {
1212
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/mode/javascript/javascript.js",
1313
"file": "codemirror_mode_javascript_javascript__js.js",
14-
"fileHash": "a86593cc",
14+
"fileHash": "da66bbdc",
1515
"needsInterop": true
1616
},
1717
"codemirror": {
1818
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/lib/codemirror.js",
1919
"file": "codemirror.js",
20-
"fileHash": "779a6916",
20+
"fileHash": "f92910da",
2121
"needsInterop": true
2222
},
2323
"codemirror/addon/merge/merge.js": {
2424
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/addon/merge/merge.js",
2525
"file": "codemirror_addon_merge_merge__js.js",
26-
"fileHash": "2f0a3d29",
26+
"fileHash": "e5acd0e2",
2727
"needsInterop": true
2828
},
2929
"diff-match-patch": {
3030
"src": "../../../../node_modules/.pnpm/diff-match-patch@1.0.5/node_modules/diff-match-patch/index.js",
3131
"file": "diff-match-patch.js",
32-
"fileHash": "e990446a",
32+
"fileHash": "079d268b",
3333
"needsInterop": true
3434
},
3535
"codemirror/addon/mode/simple.js": {
3636
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/addon/mode/simple.js",
3737
"file": "codemirror_addon_mode_simple__js.js",
38-
"fileHash": "6bd9d3c3",
38+
"fileHash": "5c61132d",
3939
"needsInterop": true
4040
},
4141
"codemirror/mode/htmlmixed/htmlmixed.js": {
4242
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/mode/htmlmixed/htmlmixed.js",
4343
"file": "codemirror_mode_htmlmixed_htmlmixed__js.js",
44-
"fileHash": "4f500e72",
45-
"needsInterop": true
46-
},
47-
"codemirror/mode/vue/vue.js": {
48-
"src": "../../../../node_modules/.pnpm/codemirror@5.65.12/node_modules/codemirror/mode/vue/vue.js",
49-
"file": "codemirror_mode_vue_vue__js.js",
50-
"fileHash": "4c38f367",
44+
"fileHash": "38f3fa37",
5145
"needsInterop": true
5246
}
5347
},
5448
"chunks": {
55-
"chunk-JSH3JXQT": {
56-
"file": "chunk-JSH3JXQT.js"
57-
},
58-
"chunk-VLBYB5Q5": {
59-
"file": "chunk-VLBYB5Q5.js"
60-
},
6149
"chunk-YKAEQP53": {
6250
"file": "chunk-YKAEQP53.js"
6351
},

docs/.vitepress/cache/deps/chunk-JSH3JXQT.js

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)