fix: 打卡记录改用 ListView

This commit is contained in:
2026-11-19 15:56:22 +08:00
parent 29c472078e
commit 0ceb334988
+6 -11
View File
@@ -1,3 +1,5 @@
import { ListView } from "std-widgets.slint";
export struct DayRow {
date: string,
mark: string,
@@ -176,19 +178,12 @@ export component MainWindow inherits Window {
}
}
if root.error == "" && root.days.length > 0: Flickable {
width: 100%;
if root.error == "" && root.days.length > 0: ListView {
vertical-stretch: 1;
content-height: list.preferred-height;
list := VerticalLayout {
width: 100%;
for day in root.days: VerticalLayout {
alignment: start;
for day in root.days: VerticalLayout {
width: 100%;
alignment: start;
DayBlock { day: day; }
Hairline {}
}
DayBlock { day: day; }
Hairline {}
}
}
}