Skip to content

Commit 08a12ed

Browse files
authored
fix: doc version compatibility
1 parent d14a6a5 commit 08a12ed

File tree

1 file changed

+5
-45
lines changed

1 file changed

+5
-45
lines changed

README.md

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -104,52 +104,12 @@ app.use(VueMermaidString)
104104
```
105105
<!-- /INSTALL -->
106106

107-
<!--## Install Via a Package Manager
108-
```bash
109-
# npm
110-
$ npm install vue-mermaid-string
107+
## Version compatibility
111108

112-
# Yarn
113-
$ yarn add vue-mermaid-string
114-
```
115-
116-
Add to Local Components:
117-
118-
```js
119-
import VueMermaidString from 'vue-mermaid-string'
120-
121-
export default {
122-
components: {
123-
VueMermaidString,
124-
},
125-
}
126-
```
127-
128-
Or register as global component:
129-
130-
```js
131-
import Vue from 'vue'
132-
import VueMermaidString from 'vue-mermaid-string'
133-
134-
Vue.component('VueMermaidString', VueMermaidString)
135-
```
136-
137-
Or register as plugin:
138-
139-
```js
140-
import Vue from 'vue'
141-
import VueMermaidString from 'vue-mermaid-string'
142-
143-
Vue.use(VueMermaidString)
144-
```
145-
146-
## Install Via CDN
147-
148-
```html
149-
<script src="https://unpkg.com/vue"></script>
150-
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
151-
<script src="https://unpkg.com/vue-mermaid-string"></script>
152-
```-->
109+
| vue-mermaid-string | Vue.js |
110+
|--------------------|--------|
111+
| v4 | v3 |
112+
| v3 | v2 |
153113

154114
## Usage
155115

0 commit comments

Comments
 (0)