From b7852ab6430084c54a8e1c0a05648748da94bc64 Mon Sep 17 00:00:00 2001 From: Justineo Date: Mon, 19 Aug 2024 23:41:18 +0800 Subject: [PATCH] fix: fix type for `autoresize` (again), closes #810 --- CHANGELOG.md | 6 +++++- README.md | 4 ++-- README.zh-Hans.md | 4 ++-- package.json | 2 +- src/index.d.ts | 3 ++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16af0a1..b5f6083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +## 7.0.3 + +* Fixed type for `autoresize` (again). + ## 7.0.2 -* Fixed style injection regression. +* Fixed style injection regression (#805). ## 7.0.1 diff --git a/README.md b/README.md index 7d4771b..9ad186b 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ Drop ` - + ``` @@ -234,7 +234,7 @@ app.component('v-chart', VueECharts) ```html - + ``` diff --git a/README.zh-Hans.md b/README.zh-Hans.md index 0ae5396..17b929e 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -214,7 +214,7 @@ import "echarts"; ```html - + ``` @@ -234,7 +234,7 @@ app.component('v-chart', VueECharts) ```html - + ``` diff --git a/package.json b/package.json index b686e1b..4676b5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-echarts", - "version": "7.0.2", + "version": "7.0.3", "description": "Vue.js component for Apache ECharts™.", "license": "MIT", "repository": "https://github.com/ecomfe/vue-echarts.git", diff --git a/src/index.d.ts b/src/index.d.ts index b2be1e6..1cfebc9 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -6,6 +6,7 @@ import type { InitOptions, UpdateOptions, LoadingOptions, + AutoResize, EChartsType, Emits, ThemeInjection, @@ -25,7 +26,7 @@ declare type ChartProps = { updateOptions?: UpdateOptions; loadingOptions?: LoadingOptions; option?: Option; - autoresize?: boolean; + autoresize?: AutoResize; loading?: boolean; group?: string; manualUpdate?: boolean;