feat: add card hover effect and ECharts heatmap support
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user