补充前端事件代理说明注释
This commit is contained in:
@@ -18,6 +18,7 @@ export function bindChatRightPanelControls() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 右侧名单和房间 tab 仍由 Blade 主脚本维护状态,这里只转发点击入口。
|
||||
const tabButton = event.target.closest("[data-chat-right-tab]");
|
||||
if (tabButton) {
|
||||
event.preventDefault();
|
||||
@@ -25,6 +26,7 @@ export function bindChatRightPanelControls() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 在线名单刷新函数仍在主聊天脚本中,后续渲染整体迁移后再收口到模块内。
|
||||
const refreshButton = event.target.closest("[data-chat-user-list-refresh]");
|
||||
if (refreshButton) {
|
||||
event.preventDefault();
|
||||
@@ -45,6 +47,7 @@ export function bindChatRightPanelControls() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 搜索输入高频触发,继续复用主脚本里的 RAF 节流渲染。
|
||||
window.scheduleFilterUserList?.();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user