diff --git a/admin/src/plugins/echarts.ts b/admin/src/plugins/echarts.ts index 4f56d89..a88cfcb 100644 --- a/admin/src/plugins/echarts.ts +++ b/admin/src/plugins/echarts.ts @@ -4,6 +4,14 @@ * 按需导入 ECharts 图表和组件,减小打包体积。 * 只注册项目中实际使用的图表类型和组件。 * + * Phase 4 Task 5D 收窄:全仓 grep 后,存活消费方只有 + * views/stats/overview(charts.ts 的 line/bar/pie 系列 + tooltip/ + * grid/legend/title 组件)与 hooks/core/useChart(init/setOption/ + * resize/dispose,core 自带)。art-* 图表库组件(scatter/radar/k-line + * 及 dataZoom/toolbox/brush/geo/visualMap/markLine/markPoint)均无 + * 页面挂载——相应注册一并移除;组件文件保留(模板库代码),graphic/ + * 类型导出不动(未挂载组件的 import 仍可编译)。 + * * @module plugins/echarts * @author Art Design Pro Team */ @@ -12,29 +20,14 @@ import * as echarts from 'echarts/core' // 导入图表类型 -import { - BarChart, - LineChart, - PieChart, - ScatterChart, - RadarChart, - MapChart, - CandlestickChart -} from 'echarts/charts' +import { BarChart, LineChart, PieChart } from 'echarts/charts' // 导入组件 import { TitleComponent, TooltipComponent, GridComponent, - LegendComponent, - DataZoomComponent, - MarkPointComponent, - MarkLineComponent, - ToolboxComponent, - BrushComponent, - GeoComponent, - VisualMapComponent + LegendComponent } from 'echarts/components' // 导入渲染器 @@ -46,23 +39,12 @@ echarts.use([ BarChart, LineChart, PieChart, - ScatterChart, - RadarChart, - MapChart, - CandlestickChart, // 组件 TitleComponent, TooltipComponent, GridComponent, LegendComponent, - DataZoomComponent, - MarkPointComponent, - MarkLineComponent, - ToolboxComponent, - BrushComponent, - GeoComponent, - VisualMapComponent, // 渲染器 CanvasRenderer