Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
原因找到了, <script lang="ts" setup>
// echartsCompnent.vue
import type { EchartsUIType } from '@vben/plugins/echarts';
import { onMounted, ref } from 'vue';
import { EchartsUI, useEcharts } from '@vben/plugins/echarts';
const chartRef = ref<EchartsUIType>();
const { renderEcharts } = useEcharts(chartRef);
onMounted(() => {
renderEcharts({
// ...
});
});
</script>
<template>
<EchartsUI ref="chartRef" />
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
Vben Admin V5
Describe the bug?
Reproduction
Relevant log output
Validations
Beta Was this translation helpful? Give feedback.
All reactions