feat(network): 按概念图重排网络卡片与状态摘要

This commit is contained in:
2026-11-03 17:16:41 +08:00
parent 54abb08420
commit c17d974161
6 changed files with 112 additions and 22 deletions
+4 -1
View File
@@ -32,6 +32,7 @@ struct PanelTrendChart: View {
var boundaryDates: Set<Date> = []
var intervals: [TimeInterval] = []
var plotHeight: CGFloat = 58
var showsLegendValues = true
@Environment(\.accessibilityReduceMotion) private var reduceMotion
@State private var retainedScale: Double = 1
@State private var smallSamples = 0
@@ -80,7 +81,9 @@ struct PanelTrendChart: View {
HStack(spacing: 3) {
RoundedRectangle(cornerRadius: 1).fill(tint).frame(width: 7, height: 7)
Text(label)
Text(verbatim: formatted(values.last ?? nil, format: format)).monospacedDigit()
if showsLegendValues {
Text(verbatim: formatted(values.last ?? nil, format: format)).monospacedDigit()
}
}.font(.system(size: 9)).lineLimit(1).minimumScaleFactor(0.8)
}