From db49d1050e08db6162c1793ce84484689670c899 Mon Sep 17 00:00:00 2001 From: HIsheR Date: Tue, 27 Oct 2026 02:05:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(backlog):=20=E8=AE=B0=E5=BD=95=20g332=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ua/backlog.json | 2 +- .ua/iterations.log | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ua/backlog.json b/.ua/backlog.json index 7f81051..74c0f3d 100644 --- a/.ua/backlog.json +++ b/.ua/backlog.json @@ -3378,7 +3378,7 @@ { "id": "g332", "domain": "tune", - "status": "open", + "status": "done", "title": "主题工具下沉:URL 参数 / 记忆 / 跟随系统三档只写一次", "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 全绿。", diff --git a/.ua/iterations.log b/.ua/iterations.log index 2ee670e..f7408a9 100644 --- a/.ua/iterations.log +++ b/.ua/iterations.log @@ -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: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:05:31+08:00","id":"g332","result":"done","commit":"4b37399","summary":"theme() 下沉:参数>记忆>系统三档 + media 监听,system 档不落盘;技能站删掉二十行样板改用一行调用"}