chore(backlog): 记录 g332 完成

This commit is contained in:
HIsheR
2026-10-27 02:05:32 +08:00
parent 817d94a42a
commit db49d1050e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -3378,7 +3378,7 @@
{ {
"id": "g332", "id": "g332",
"domain": "tune", "domain": "tune",
"status": "open", "status": "done",
"title": "主题工具下沉:URL 参数 / 记忆 / 跟随系统三档只写一次", "title": "主题工具下沉:URL 参数 / 记忆 / 跟随系统三档只写一次",
"motivation": "演示站自己写了二十行主题样板(读 ?theme= 参数、读 localStorage、判系统偏好、写 data-theme、落盘),任何接入方都得再抄一遍——抄漏「跟随系统」就永远停在默认亮色,抄漏「只记显式选择」则用户切过一次就再也不会跟着系统变。这类样板属于库该提供的能力,而不是使用说明里的一段示例。", "motivation": "演示站自己写了二十行主题样板(读 ?theme= 参数、读 localStorage、判系统偏好、写 data-theme、落盘),任何接入方都得再抄一遍——抄漏「跟随系统」就永远停在默认亮色,抄漏「只记显式选择」则用户切过一次就再也不会跟着系统变。这类样板属于库该提供的能力,而不是使用说明里的一段示例。",
"acceptance": "① 新增 theme(options) 工具(skin 包导出,走 --ua-* 令牌,不新增组件):优先级 URL 参数 > 本地记忆 > 跟随系统,mode='system' 时监听 prefers-color-scheme 并在变化时换色;② 返回 { mode, dark, set, toggle, dispose },dark 是可直接绑 switchButton 的布尔信号;③ 只有显式选择才落盘,system 档不写记忆;④ 演示站改用 theme({ storageKey: 'ua-demo-theme' }),删掉原先手写的样板且行为不变(?theme=dark 联动仍在);⑤ manifest 导出说明补齐,npm run check 全绿。", "acceptance": "① 新增 theme(options) 工具(skin 包导出,走 --ua-* 令牌,不新增组件):优先级 URL 参数 > 本地记忆 > 跟随系统,mode='system' 时监听 prefers-color-scheme 并在变化时换色;② 返回 { mode, dark, set, toggle, dispose },dark 是可直接绑 switchButton 的布尔信号;③ 只有显式选择才落盘,system 档不写记忆;④ 演示站改用 theme({ storageKey: 'ua-demo-theme' }),删掉原先手写的样板且行为不变(?theme=dark 联动仍在);⑤ manifest 导出说明补齐,npm run check 全绿。",
+1
View File
@@ -376,3 +376,4 @@
{"ts":"2026-10-27T02:01:08+08:00","id":"g329","result":"done","commit":"0768a34","summary":"editable 新增(组件 89→90):静止态文字按钮、Enter 提交/Esc 取消不落值/失焦提交、validate 拦下时留编辑态标红、disabled 布尔与信号双口径"} {"ts":"2026-10-27T02:01:08+08:00","id":"g329","result":"done","commit":"0768a34","summary":"editable 新增(组件 89→90):静止态文字按钮、Enter 提交/Esc 取消不落值/失焦提交、validate 拦下时留编辑态标红、disabled 布尔与信号双口径"}
{"ts":"2026-10-27T02:03:10+08:00","id":"g330","result":"done","commit":"20290f6","summary":"TableColumn.render 取代 format 决定单元格内容,排序筛选仍按原值;格内点击拦冒泡不触发 onRowClick;demo 城市列改标签渲染"} {"ts":"2026-10-27T02:03:10+08:00","id":"g330","result":"done","commit":"20290f6","summary":"TableColumn.render 取代 format 决定单元格内容,排序筛选仍按原值;格内点击拦冒泡不触发 onRowClick;demo 城市列改标签渲染"}
{"ts":"2026-10-27T02:03:47+08:00","id":"g331","result":"done","commit":"05720aa","summary":"配方 22:dataTable 列 render 包 editable,草稿信号与数据源分离,要点写清整表换源副作用与 format/render 分工"} {"ts":"2026-10-27T02:03:47+08:00","id":"g331","result":"done","commit":"05720aa","summary":"配方 22:dataTable 列 render 包 editable,草稿信号与数据源分离,要点写清整表换源副作用与 format/render 分工"}
{"ts":"2026-10-27T02:05:31+08:00","id":"g332","result":"done","commit":"4b37399","summary":"theme() 下沉:参数>记忆>系统三档 + media 监听,system 档不落盘;技能站删掉二十行样板改用一行调用"}