diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8dcc977..9a94f53 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 6.0.0-alpha.5
+
+* Fix event support for Vue 2.
+
## 6.0.0-alpha.4
* Add missing injection key exports.
diff --git a/README.md b/README.md
index 4f10a99..b0e4548 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,7 @@ Drop `
-
+
```
@@ -125,7 +125,7 @@ app.component('v-chart', VueECharts)
-
+
```
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index 5bdf575..483ed66 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -98,7 +98,7 @@ import "echarts";
-
+
```
@@ -123,7 +123,7 @@ app.component('v-chart', VueECharts)
-
+
```
diff --git a/package.json b/package.json
index d6fb647..085e4cf 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-echarts",
- "version": "6.0.0-alpha.4",
+ "version": "6.0.0-alpha.5",
"scripts": {
"serve": "vue-cli-service serve",
"build:demo": "vue-cli-service build",
diff --git a/rollup.config.js b/rollup.config.js
index 3afeb23..1f67a80 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -58,6 +58,7 @@ const options = [
file: "dist/index.umd.js",
format: "umd",
name: "VueECharts",
+ exports: "named",
sourcemap: true,
globals: {
"vue-demi": "VueDemi",
@@ -69,6 +70,7 @@ const options = [
file: "dist/index.umd.min.js",
format: "umd",
name: "VueECharts",
+ exports: "named",
sourcemap: true,
globals: {
"vue-demi": "VueDemi",
diff --git a/src/ECharts.ts b/src/ECharts.ts
index 0b78b50..dbaab27 100644
--- a/src/ECharts.ts
+++ b/src/ECharts.ts
@@ -54,7 +54,9 @@ export default defineComponent({
...autoresizeProps,
...loadingProps
},
- setup(props, { attrs }) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ // @ts-expect-error
+ setup(props, { attrs, listeners }) {
const root = ref();
const chart = shallowRef();
const manualOption = shallowRef