chore(backlog): 记录 g290 完成

This commit is contained in:
HIsheR
2026-10-26 23:20:06 +08:00
parent 9e72607952
commit a093c07d40
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -2996,6 +2996,15 @@
"status": "done",
"domain": "tune",
"notes": ""
},
{
"id": "g290",
"title": "抽出 trackShift 并接到下拉弹层",
"motivation": "g289 把滚动跟随写在了 tooltip 里,可下拉族(select / autoComplete / cascader / datePicker / timePicker / colorPicker / menu / multiSelect)用的是同一个 flip,同样只在打开那一瞬算一次——同一个缺陷被复制在九处,修一处等于只修了一份。先把监听逻辑抽成公共件,tooltip 用法不变(还顺手删掉了刚写的一整段重复代码),再给用量最大的 select 接上。",
"acceptance": "position.ts 新增 trackShift(onShift):捕获阶段监听 scroll + resize、rAF 节流、返回摘除函数并撤销待执行帧;tooltip 改用它(删除内联的 bound/raf/bind/unbind 五个变量,文件反而短了);select 展开期间接上 trackShift,收起即摘;两个组件的文档 steps 同步口径;npm run check 全绿",
"status": "done",
"domain": "tooling",
"notes": ""
}
]
}