fix: add missing type file for 2.7

This commit is contained in:
Justineo
2023-12-26 15:00:23 +08:00
parent 7bcf57e77b
commit 476efa4209
5 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,7 @@
## 6.6.7
* Added missing type file for Vue 2.7.
## 6.6.6
* Fixed types for Vue < 2.7.

View File

@ -238,7 +238,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.7"></script>
```
<!-- vue3Scripts:end -->
@ -258,7 +258,7 @@ app.component('v-chart', VueECharts)
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.7"></script>
```
<!-- vue2Scripts:end -->

View File

@ -238,7 +238,7 @@ import "echarts";
```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.7"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.7"></script>
```
<!-- vue3Scripts:end -->
@ -258,7 +258,7 @@ app.component('v-chart', VueECharts)
```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.15"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.5"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@6.6.7"></script>
```
<!-- vue2Scripts:end -->

View File

@ -1,6 +1,6 @@
{
"name": "vue-echarts",
"version": "6.6.6",
"version": "6.6.7",
"description": "Vue.js component for Apache ECharts.",
"author": "GU Yiling <justice360@gmail.com>",
"scripts": {

View File

@ -9,6 +9,14 @@ const options = [
file: "dist/index.vue2.d.ts",
format: "esm"
}
},
{
input: "src/index.vue2_7.d.ts",
plugins: [dts()],
output: {
file: "dist/index.vue2_7.d.ts",
format: "esm"
}
}
];