Closed kingyue737 closed 2 years ago
loading doesn't work either
<template>
<v-chart ref="chart" />
</template>
<script lang="ts" setup>
import { onBeforeUnmount, onMounted, ref } from 'vue'
const chart = ref(null)
const handleClick = () => {
// do something
}
onMounted(() => {
chart.value?.chart?.on('click', handleClick)
})
onBeforeUnmount(() => {
chart.value?.chart?.off('click', handleClick)
})
</script>
This works for me
v-on
should work now by upgrading to vue-echarts@6.2.3
.
v-on
should work now by upgrading tovue-echarts@6.2.3
.
v-on
worked! but loading
seems still not working properly
@youthug Please open a new issue with proper reproduction. Thank you!
Confirmation
How are you introducing Vue-ECharts into your project?
ES Module imports
Versions
Details
Should print log in console when hovering on chart, but nothing happens.
Reproduction
https://stackblitz.com/edit/vitejs-vite-kdw9ez