全局美化 v4

This commit is contained in:
tamakyi
2026-10-19 12:07:21 +08:00
parent 5c7707ec0d
commit d7c1782bb6
50 changed files with 18372 additions and 401 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ func TestPercentRender(t *testing.T) {
}
html := buf.String()
// 2/3 取整 = 66%,1/3 取整 = 33%;进度条宽度同步渲染
for _, want := range []string{"(66%)", "(33%)", "width: 66%", "width: 33%", "uk-progressbar"} {
// 2/3 取整 = 66%,1/3 取整 = 33%;占比条改用原生 <progress>,值同步渲染
for _, want := range []string{"(66%)", "(33%)", `value="66" max="100"`, `value="33" max="100"`, "uk-progress"} {
if !bytes.Contains([]byte(html), []byte(want)) {
t.Errorf("HTML missing %q", want)
}