chore(backlog): 记录 g204 完成

This commit is contained in:
HIsheR
2026-10-26 19:13:53 +08:00
parent 5bc854b939
commit 5e14fc0dde
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -2222,6 +2222,15 @@
"domain": "tooling", "domain": "tooling",
"status": "done", "status": "done",
"notes": "落地:docs 模板加显式暗色块(:root[data-theme=dark] + 媒体查询 :not([data-theme=light]))与页头切换按钮(localStorage 持久);demo 主题初始化优先读 ?theme= 参数;切换时 iframe.demo 带参重载联动。产物(apps/docs/* 与 demo dist)不入库由 npm run docs 本地生成;apps/docs/demo.html 须先 npm run demo 再 npm run docs,顺序反了拷到旧产物。" "notes": "落地:docs 模板加显式暗色块(:root[data-theme=dark] + 媒体查询 :not([data-theme=light]))与页头切换按钮(localStorage 持久);demo 主题初始化优先读 ?theme= 参数;切换时 iframe.demo 带参重载联动。产物(apps/docs/* 与 demo dist)不入库由 npm run docs 本地生成;apps/docs/demo.html 须先 npm run demo 再 npm run docs,顺序反了拷到旧产物。"
},
{
"id": "g204",
"title": "textarea 支持 autosize 自适应内容高度",
"motivation": "多行输入在评论/描述场景下固定行数体验差:内容一行时下方大片空白,内容超长时内部滚动突兀。主流组件库标配 autosize,本库 textarea 缺失。",
"acceptance": "1) TextareaProps 新增 autosize?: boolean | { minRows?: number; maxRows?: number },true 跟随内容涨落,对象态钳最小/最大行高,超 maxRows 内部滚动;2) 输入与外部写回信号都触发重算;3) manifest 文档 props 表补 autosize 行,npm run docs 同步 llms-full.txt;4) 样式零新增硬编码(高度走 JS 内联,行高从 computed style 推导),npm run check 全绿。",
"domain": "tune",
"status": "done",
"notes": "落地:autosize 布尔/对象双态,高度与 min/max 行钳制在统一 frame 里由 computed style 推导(line-height 为 normal 按 1.5 倍字号退化),scrollHeight 盒模型补偿含边框;输入与外部写回信号都重算;resize 置 none。"
} }
] ]
} }
+1
View File
@@ -248,3 +248,4 @@
{"ts": "2026-10-26T18:25:13+08:00", "id": "g201", "result": "done", "commit": "e64f72b", "summary": "焦点可达性:清点确认点击型控件已无裸 :focus 残留(38 处 focus-visible/7 处输入类保留);修「吞环」3 处——tab/option/menu-item 键焦改内嵌描边(面板滚动裁切场景)"} {"ts": "2026-10-26T18:25:13+08:00", "id": "g201", "result": "done", "commit": "e64f72b", "summary": "焦点可达性:清点确认点击型控件已无裸 :focus 残留(38 处 focus-visible/7 处输入类保留);修「吞环」3 处——tab/option/menu-item 键焦改内嵌描边(面板滚动裁切场景)"}
{"ts":"2026-10-26T19:03:16+08:00","id":"g202","result":"done","commit":"f332500","summary":"按下态可见性修正:option/menu-item/tab 改 tint-accent 并数值复核,四处 accent 混 bg 并入 tint-accent,字面 ease 全量换令牌"} {"ts":"2026-10-26T19:03:16+08:00","id":"g202","result":"done","commit":"f332500","summary":"按下态可见性修正:option/menu-item/tab 改 tint-accent 并数值复核,四处 accent 混 bg 并入 tint-accent,字面 ease 全量换令牌"}
{"ts":"2026-10-26T19:11:13+08:00","id":"g203","result":"done","commit":"df51478","summary":"文档站页头主题切换(亮/暗/跟随系统,localStorage 持久),demo 读 ?theme= 参数,iframe 带参重载联动暗色"} {"ts":"2026-10-26T19:11:13+08:00","id":"g203","result":"done","commit":"df51478","summary":"文档站页头主题切换(亮/暗/跟随系统,localStorage 持久),demo 读 ?theme= 参数,iframe 带参重载联动暗色"}
{"ts":"2026-10-26T19:13:53+08:00","id":"g204","result":"done","commit":"5bc854b","summary":"textarea 新增 autosize:布尔/对象(minRows/maxRows)双态,输入与信号写回都重算高度,行高从 computed style 推导零硬编码"}