uniapp vue3微信小程序echarts 组件封装在上一篇的基础上,将图表封装成了组件,技术有限,大家凑合着看吧<template> <view class="chart-container"> <canvas id="myChart" type="2d" canvas-id="myChart" style="width: 100%; height: 400px;"></canvas> </view> </template> <script setup> import { onMounted, nextTick, getCurrentInstance,