fix: fix type for autoresize (again), closes #810

This commit is contained in:
Justineo
2024-08-19 23:41:18 +08:00
parent 1378f6e397
commit b7852ab643
5 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,10 @@
## 7.0.3
* Fixed type for `autoresize` (again).
## 7.0.2 ## 7.0.2
* Fixed style injection regression. * Fixed style injection regression (#805).
## 7.0.1 ## 7.0.1

View File

@ -214,7 +214,7 @@ Drop `<script>` inside your HTML file and access the component via `window.VueEC
```html ```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script> <script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.2"></script> <script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.3"></script>
``` ```
<!-- vue3Scripts:end --> <!-- vue3Scripts:end -->
@ -234,7 +234,7 @@ app.component('v-chart', VueECharts)
```html ```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script> <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.2"></script> <script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.3"></script>
``` ```
<!-- vue2Scripts:end --> <!-- vue2Scripts:end -->

View File

@ -214,7 +214,7 @@ import "echarts";
```html ```html
<script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script> <script src="https://cdn.jsdelivr.net/npm/vue@3.4.33"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.2"></script> <script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.3"></script>
``` ```
<!-- vue3Scripts:end --> <!-- vue3Scripts:end -->
@ -234,7 +234,7 @@ app.component('v-chart', VueECharts)
```html ```html
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script> <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.2"></script> <script src="https://cdn.jsdelivr.net/npm/vue-echarts@7.0.3"></script>
``` ```
<!-- vue2Scripts:end --> <!-- vue2Scripts:end -->

View File

@ -1,6 +1,6 @@
{ {
"name": "vue-echarts", "name": "vue-echarts",
"version": "7.0.2", "version": "7.0.3",
"description": "Vue.js component for Apache ECharts™.", "description": "Vue.js component for Apache ECharts™.",
"license": "MIT", "license": "MIT",
"repository": "https://github.com/ecomfe/vue-echarts.git", "repository": "https://github.com/ecomfe/vue-echarts.git",

3
src/index.d.ts vendored
View File

@ -6,6 +6,7 @@ import type {
InitOptions, InitOptions,
UpdateOptions, UpdateOptions,
LoadingOptions, LoadingOptions,
AutoResize,
EChartsType, EChartsType,
Emits, Emits,
ThemeInjection, ThemeInjection,
@ -25,7 +26,7 @@ declare type ChartProps = {
updateOptions?: UpdateOptions; updateOptions?: UpdateOptions;
loadingOptions?: LoadingOptions; loadingOptions?: LoadingOptions;
option?: Option; option?: Option;
autoresize?: boolean; autoresize?: AutoResize;
loading?: boolean; loading?: boolean;
group?: string; group?: string;
manualUpdate?: boolean; manualUpdate?: boolean;