broBinChen
broBinChen
## Description 在使用 useHoverToggle hook 监听一组 DOM 元素的 hover 事件时,我遇到了一个问题:这些元素在运行时会动态更新,但新增的元素缺失了 hover 监听器,导致行为不一致。 https://github.com/user-attachments/assets/6c58d9cd-45c1-4c8b-a062-b63d82eeb1ef ### 解决方案 本PR通过为 useHoverToggle hook 增加对 refElement 参数的响应式支持来解决这个问题。主要改动包括: - 扩展类型支持:在参数类型中添加了 Ref,支持响应式元素引用 - 响应式元素追踪:实现了当元素引用发生变化时的自动更新机制 - 动态监听器管理:添加了 updateHovers() 函数和...
### Changes Replaced the deprecated `addToolResult` method with the new `addToolOutput` method from `ai`. ### Reason The `addToolResult` API has been marked as deprecated. This update ensures compatibility with future...
### Problem When clicking on the first example card (Animated Diagram) or the fourth example card (Creative Drawing), the file list was not being cleared. This caused previously uploaded images...
## Bug Description After the removal of `proxy.ts` in PR #448, the application returns 404 errors when accessing the root path (`/`) or `/about` route. The proxy file previously handled...
Add a copy button in tool call headers to easily copy generated content. Use case: Allow users to quickly copy generated XML/operations to use as presets or for debugging purposes....