fix: fix event support for Vue 2, fix #510

This commit is contained in:
Justineo
2021-02-23 20:09:16 +08:00
parent 175d823200
commit 6629540a8e
8 changed files with 49 additions and 25 deletions

View File

@ -272,7 +272,7 @@
<script>
/* eslint-disable no-console */
import qs from "qs";
import VChart from "../../dist/index.esm";
import VChart from "../ECharts";
import * as echarts from "echarts/core";
import {
@ -397,11 +397,11 @@ export default {
};
},
methods: {
handleClick() {
console.log("click from echarts");
handleClick(...args) {
console.log("click from echarts", ...args);
},
handleZrClick() {
console.log("click from zrender");
handleZrClick(...args) {
console.log("click from zrender", ...args);
},
refresh() {
// simulating async data from server