refactor(echarts): 重构 ECharts 使用方式并优化图表配置- 在 main.js 中引入 ECharts 及相关组件,并通过 Vue.prototype.$echarts 使 ECharts 在全局可用

- 修改 echarts.vue 组件,使用全局的 $echarts 替代局部引入的 echarts
- 优化 overview.vue 中的图表配置,调整颜色渐变和偏移
This commit is contained in:
陈昱达
2025-05-08 09:31:08 +08:00
parent 4179d1cb31
commit 0dea699f1f
3 changed files with 36 additions and 6 deletions

View File

@@ -61,13 +61,13 @@ export default {
color: '#0694A2'
},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 2, [
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: '#F3F9FA'
color: '#0694A2'
},
{
offset: 0.2,
offset: 1,
color: '#F3F9FA'
}
])