perf(ui): 移除监控动效并精简原生图表绘制
This commit is contained in:
@@ -47,11 +47,11 @@ struct ResourceCard<Content: View>: View {
|
||||
}
|
||||
Spacer(minLength: 0)
|
||||
HStack(alignment: .center, spacing: 6) {
|
||||
AnimatedMetricText(value: value)
|
||||
MetricText(value: value)
|
||||
.font(PanelStyle.title)
|
||||
.foregroundStyle(valueColor ?? color)
|
||||
if let secondaryValue {
|
||||
AnimatedMetricText(value: secondaryValue).font(PanelStyle.title)
|
||||
MetricText(value: secondaryValue).font(PanelStyle.title)
|
||||
.foregroundStyle(secondaryValueColor ?? color)
|
||||
}
|
||||
}.foregroundStyle(color).lineLimit(1)
|
||||
|
||||
Reference in New Issue
Block a user