chore(backlog): 记录 g342 完成

This commit is contained in:
HIsheR
2026-10-27 02:24:43 +08:00
parent a2b545a9e1
commit d0ef012290
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -3464,6 +3464,15 @@
"acceptance": "① error / hint 各自带派生 id(全页唯一,多表单不串号);② paint 时把 aria-describedby 落到控件根与内部原生控件:有错指错误区、无错指 hint(若存在)、都没有则摘掉属性;③ ua verify 新增三条断言(错误区派生 id / aria-describedby 落笔 / 校验通过后清除)把行为钉住;④ npm run check 全绿,样式与令牌零改动。", "acceptance": "① error / hint 各自带派生 id(全页唯一,多表单不串号);② paint 时把 aria-describedby 落到控件根与内部原生控件:有错指错误区、无错指 hint(若存在)、都没有则摘掉属性;③ ua verify 新增三条断言(错误区派生 id / aria-describedby 落笔 / 校验通过后清除)把行为钉住;④ npm run check 全绿,样式与令牌零改动。",
"status": "done", "status": "done",
"notes": "" "notes": ""
},
{
"id": "g342",
"domain": "tune",
"title": "重置按钮真复位:点了没反应比没有这个按钮更糟",
"motivation": "文档写着「组件不自行清空字段,由调用方重置信号」,于是不传 onReset 时 resetText 渲染出的按钮点了毫无反应;传了 onReset 也只跑回调,字段里的旧值和满屏红框照旧。用户看到「重置」二字期待的是回到干净状态,现在的实现把这件事完全甩给调用方,自绘控件(select 无原生 input)更是连清都清不掉。",
"acceptance": "① formItem 句柄暴露 reset:构造时快照原生控件的初始值,复位时还原并 dispatch input/change 让信号同步,最后清错误态;② 新增 FormItemProps.reset 钩子,自绘控件由调用方回写信号;③ form 的重置改为 doReset:逐项 reset → 收起汇总条 → 再调 onReset(向后兼容);④ ua verify 新增 checkFormReset 三条断言;⑤ demo 表单加「重置」按钮与城市下拉的 reset 钩子演示;⑥ npm run check 全绿。",
"status": "done",
"notes": ""
} }
] ]
} }
+1
View File
@@ -386,3 +386,4 @@
{"ts":"2026-10-27T02:17:29+08:00","id":"g339","result":"done","commit":"e5943aa","summary":"四方向 45° 菱形箭头继承气泡底色,全令牌零新增字面量"} {"ts":"2026-10-27T02:17:29+08:00","id":"g339","result":"done","commit":"e5943aa","summary":"四方向 45° 菱形箭头继承气泡底色,全令牌零新增字面量"}
{"ts":"2026-10-27T02:19:48+08:00","id":"g340","result":"done","commit":"21b98ad","summary":"verify 新增 toast live 检查(负向自检红/恢复绿),aria-live 与 alert 抢apost不再可回退"} {"ts":"2026-10-27T02:19:48+08:00","id":"g340","result":"done","commit":"21b98ad","summary":"verify 新增 toast live 检查(负向自检红/恢复绿),aria-live 与 alert 抢apost不再可回退"}
{"ts":"2026-10-27T02:22:54+08:00","id":"g341","result":"done","commit":"5d02c81","summary":"formItem 错误区与 hint 各带唯一 id,paint 时把 aria-describedby 落到控件(报错优先、无错指向 hint、都没有则摘掉),verify 补三条断言钉住"} {"ts":"2026-10-27T02:22:54+08:00","id":"g341","result":"done","commit":"5d02c81","summary":"formItem 错误区与 hint 各带唯一 id,paint 时把 aria-describedby 落到控件(报错优先、无错指向 hint、都没有则摘掉),verify 补三条断言钉住"}
{"ts":"2026-10-27T02:24:43+08:00","id":"g342","result":"done","commit":"a2b545a","summary":"formItem 句柄新增 reset(初始值快照 + dispatch 事件同步信号 + 清错误态),FormItemProps 增 reset 钩子给自绘控件,form 重置改 doReset 逐项复位并收汇总条,verify 补 checkFormReset,demo 加重置演示"}