chore(backlog): 记录 g10 完成

This commit is contained in:
HIsheR
2026-10-26 10:25:19 +08:00
parent 2f8ccb68d8
commit 07b9b759c7
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -442,8 +442,8 @@
"title": "新增 statistic 统计数值组件",
"motivation": "看板需要大号数值 + 单位 + 环比趋势,现在只能手写;数值变化时的滚动动画能强化数据反馈",
"acceptance": "新增 src/statistic.ts:title / value(Signal<number>) / precision / prefix / suffix / trend(up|down),值变化用 rAF 从旧值滚到新值(约 400ms),prefers-reduced-motion 直接落终值,涨红跌绿;导出 + manifest + demo sec-statistic + 文档同步;npm run check 全绿",
"status": "open",
"notes": "自补:组件补充方向"
"status": "done",
"notes": "API 为 title + value(信号) + precision + prefix + suffix + trend;滚动用 rAF 逐帧改文本(400ms easeOutCubic),新目标先 cancelAnimationFrame 打断,收尾强制对齐终值防浮点残差;matchMedia prefers-reduced-motion 直落终值;trend 按 A 股涨红跌绿;demo sec-statistic 用随机涨跌按钮演示双向滚动"
},
{
"id": "g11",