全局映入echarts

This commit is contained in:
仲么了
2024-01-12 09:55:55 +08:00
parent 2179999b04
commit d6d163150a
5 changed files with 9 additions and 7 deletions

View File

@@ -4,7 +4,9 @@
<script setup lang="ts">
import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue'
import echarts from './echarts'
// import echarts from './echarts'
import * as echarts from 'echarts'; // 全引入
import 'echarts/lib/component/dataZoom'
const chartRef = ref<HTMLDivElement>()