2025-08-14
React 流 12.8.3
React Flow 的新版本已发布。在 12.8.3 版本中,你将获得许多错误修复以及对句柄的重大改进。现在可以将句柄的子内容放置在句柄本身之外,并且仍然可以将其用作连接的起点,正如你在这个示例中看到的:
🌐 A new version of React Flow is out. With 12.8.3 you get a lot of bug fixes and a great improvement for handles. It’s now possible to position child content of a handle outside of the handle itself and still use it as a starting point for connections as you can see in this example:
补丁更改
🌐 Patch Changes
- #5428 能够使用分离句柄内容作为连接的起点
- #5419 当标记颜色为空时,使边缘标记回退到
--xy-edge-strokeCSS 变量 - #5453 启用捕捉网格时捕捉选择而不是单独节点
- #5444 导出
MiniMapNode以用于自定义小地图节点 - #5415 允许标记类型使用字符串和枚举
- #5436 当 interactionWidth 为 0 时,防止在边缘的标记中添加 0
- #5443 将 1 用作交互式小地图缩放步长的默认值
- #5448 对于句柄
onConnect使用正确的HandleConnection类型 - #5420 从
Node的domAttributes中省略defaultValue以修复使用WritableDraft时的类型不兼容问题
Get Pro examples, prioritized bug reports, 1:1 support from the maintainers, and more with React Flow Pro
Last updated on


