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",
"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,顺序反了拷到旧产物。"
},
{
"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。"
}
]
}