diff --git a/CHANGELOG.md b/CHANGELOG.md
index 27a2a70..10d2c63 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 7.0.0
+
+> Other prerelease changes:
+> * [7.0.0-beta.0](#700-beta0)
+
+* Fixed types for events.
+
## 7.0.0-beta.0
* Upgraded to ESM.
diff --git a/README.md b/README.md
index e078cac..709ad47 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 a583878..58ebc74 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 3f6cd88..cdcfbe2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-echarts",
- "version": "7.0.0-beta.0",
+ "version": "7.0.0",
"description": "Vue.js component for Apache ECharts™.",
"license": "MIT",
"repository": "https://github.com/ecomfe/vue-echarts.git",
diff --git a/src/types.ts b/src/types.ts
index 861c531..4d61876 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -93,19 +93,19 @@ type OtherEventName =
| "globalcursortaken";
type MouseEmits = {
- [key in MouseEventName]: (params: ECElementEvent) => boolean;
+ [key in MouseEventName]: (params: ECElementEvent) => void;
};
type ZRenderEmits = {
- [key in ZRenderEventName]: (params: ElementEvent) => boolean;
+ [key in ZRenderEventName]: (params: ElementEvent) => void;
};
type OtherEmits = {
- [key in OtherEventName]: null;
+ [key in OtherEventName]: (params: any) => void;
};
export type Emits = MouseEmits &
OtherEmits & {
- rendered: (params: { elapsedTime: number }) => boolean;
- finished: () => boolean;
+ rendered: (params: { elapsedTime: number }) => void;
+ finished: () => void;
} & ZRenderEmits;