feat: add card hover effect and ECharts heatmap support

This commit is contained in:
lzh
2026-01-25 22:25:49 +08:00
parent b7239c5b99
commit dac4e33cc6
2 changed files with 12 additions and 0 deletions

View File

@@ -198,6 +198,14 @@
opacity: 0.7 !important;
}
/* 统一悬浮效果 */
.bg-card:hover,
.ant-card:hover,
div.ant-card:hover,
.device-card.ant-card:hover {
box-shadow: var(--glass-shadow-hover) !important;
transform: translateY(-4px) !important;
}
/* Card 子元素样式调整 */
.ant-card-body {

View File

@@ -2,6 +2,7 @@ import type {
// 系列类型的定义后缀都为 SeriesOption
BarSeriesOption,
GaugeSeriesOption,
HeatmapSeriesOption,
LineSeriesOption,
MapSeriesOption,
} from 'echarts/charts';
@@ -21,6 +22,7 @@ import {
BarChart,
FunnelChart,
GaugeChart,
HeatmapChart,
LineChart,
MapChart,
PieChart,
@@ -54,6 +56,7 @@ export type ECOption = ComposeOption<
| GaugeSeriesOption
| GeoComponentOption
| GridComponentOption
| HeatmapSeriesOption
| LineSeriesOption
| MapSeriesOption
| TitleComponentOption
@@ -77,6 +80,7 @@ echarts.use([
LineChart,
FunnelChart,
GaugeChart,
HeatmapChart,
LabelLayout,
UniversalTransition,
CanvasRenderer,