- 在 echarts 组件中引入 HeatmapChart 热力图图表 - 在 ESLint配置中禁用 '@typescript-eslint/ban-ts-comment' 规则
@@ -9,7 +9,7 @@ import {
type SetOptionOpts,
use as echartsUse
} from "echarts/core"
-import {BarChart, GaugeChart, LineChart, PieChart, RadarChart, ScatterChart} from "echarts/charts"
+import {BarChart, GaugeChart, HeatmapChart, LineChart, PieChart, RadarChart, ScatterChart} from "echarts/charts"
import {
DatasetComponent,
GraphicComponent,
@@ -24,6 +24,7 @@ import {CanvasRenderer} from "echarts/renderers"
echartsUse([
BarChart,
+ HeatmapChart,
LineChart,
PieChart,
GaugeChart,
@@ -16,6 +16,7 @@ const eslintConfig = [
"@typescript-eslint/no-explicit-any": "off",
'@typescript-eslint/no-unused-expressions': 'off',
'react-hooks/rules-of-hooks':'off',
+ '@typescript-eslint/ban-ts-comment': 'off',
}
];