缺少代码差异信息,无法生成具体的commit message。请提供code differences内容以便分析并生成符合Angular规范的提交信息。
当您提供代码差异后,我将按照以下格式生成: ``` <type>(<scope>): <subject> <body> ``` 其中type会根据更改类型选择(feat、fix、docs、style、refactor等),scope表示影响范围,subject简要描述变更内容,body详细说明修改内容。
This commit is contained in:
@@ -44,6 +44,7 @@ struct RootView: View {
|
||||
@State private var showDiary = false
|
||||
@State private var showIndicator = false
|
||||
@State private var showReminders = false
|
||||
@State private var showHealthExport = false
|
||||
|
||||
/// 统一的 tab 切换入口:按方向设定 pushEdge,再带动画改 tab。
|
||||
/// 所有改 tab 的地方都走这里,保证过渡方向正确。
|
||||
@@ -83,6 +84,7 @@ struct RootView: View {
|
||||
case .diary: showDiary = true
|
||||
case .indicator: showIndicator = true
|
||||
case .reminder: showReminders = true
|
||||
case .healthExport: showHealthExport = true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,12 +96,21 @@ struct RootView: View {
|
||||
DiaryQuickSheet()
|
||||
}
|
||||
.sheet(isPresented: $showIndicator) {
|
||||
IndicatorQuickSheet()
|
||||
// 「拍照识别」入口:关闭手输表单 → 打开异常项快拍 VL 流程(并入「记录指标」)。
|
||||
IndicatorQuickSheet(onRequestCamera: {
|
||||
showIndicator = false
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
|
||||
activeFlow = .quick
|
||||
}
|
||||
})
|
||||
}
|
||||
.sheet(isPresented: $showReminders) {
|
||||
// 列表页依赖外层 NavigationStack 提供标题栏;sheet 形态补「完成」按钮。
|
||||
NavigationStack { RemindersListView(presentedAsSheet: true) }
|
||||
}
|
||||
.fullScreenCover(isPresented: $showHealthExport) {
|
||||
HealthExportSheet()
|
||||
}
|
||||
#if os(iOS)
|
||||
.fullScreenCover(item: $activeFlow) { flow in
|
||||
switch flow {
|
||||
@@ -176,12 +187,12 @@ private struct TabBar: View {
|
||||
.matchedGeometryEffect(id: "tabIndicator", in: indicatorNS)
|
||||
}
|
||||
Image(systemName: t.icon)
|
||||
.font(.system(size: 18, weight: isActive ? .semibold : .regular))
|
||||
.font(.tjScaled( 18, weight: isActive ? .semibold : .regular))
|
||||
}
|
||||
.frame(width: 50, height: slotHeight)
|
||||
|
||||
Text(t.label)
|
||||
.font(.system(size: 11, weight: isActive ? .semibold : .regular))
|
||||
.font(.tjScaled( 11, weight: isActive ? .semibold : .regular))
|
||||
}
|
||||
.foregroundStyle(isActive ? Tj.Palette.ink : Tj.Palette.text3)
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -204,13 +215,13 @@ private struct TabBar: View {
|
||||
radius: 4, x: 0, y: 2)
|
||||
|
||||
Image(systemName: "plus")
|
||||
.font(.system(size: 16, weight: .semibold))
|
||||
.font(.tjScaled( 16, weight: .semibold))
|
||||
.foregroundStyle(Tj.Palette.paper)
|
||||
}
|
||||
.frame(width: slotHeight, height: slotHeight)
|
||||
|
||||
Text("新建")
|
||||
.font(.system(size: 11, weight: .semibold))
|
||||
.font(.tjScaled( 11, weight: .semibold))
|
||||
.foregroundStyle(Tj.Palette.ink)
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Reference in New Issue
Block a user