docs: update readme

This commit is contained in:
Justineo
2024-04-22 11:03:46 +08:00
parent e189abd9c2
commit 34defec669
3 changed files with 7 additions and 7 deletions

View File

@ -236,9 +236,9 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
<!-- vue3Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.19"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.23"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.9"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.10"></script>
```
<!-- vue3Scripts:end -->
@ -258,7 +258,7 @@ app.component('v-chart', VueECharts)
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.9"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.10"></script>
```
<!-- vue2Scripts:end -->

View File

@ -236,9 +236,9 @@ import "echarts";
<!-- vue3Scripts:start -->
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.19"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.23"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.9"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.10"></script>
```
<!-- vue3Scripts:end -->
@ -258,7 +258,7 @@ app.component('v-chart', VueECharts)
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.9"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.10"></script>
```
<!-- vue2Scripts:end -->

View File

@ -10,7 +10,7 @@ function resolvePath(...parts) {
const CDN_PREFIX = "https://cdn.jsdelivr.net/npm/";
const DEP_VERSIONS = {
"vue@3": "3.4.19",
"vue@3": "3.4.23",
"vue@2": "2.7.16",
echarts: "5.4.3",
[name]: version