antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
592 stars 242 forks source link

DAG开启history以后,添加连线牵头样式消失 #158

Closed lishaopeng221 closed 2 years ago

lishaopeng221 commented 2 years ago

问题描述

1.在指定Hook中开启历史选项, options.history = { enabled: true }; 2.拖两个节点然后连线,报错

重现链接

https://codesandbox.io/s/vibrant-smoke-4y0ze4?file=/config-keybinding.ts

重现步骤

1.在指定Hook中开启历史选项, options.history = { enabled: true }; 2.在快捷键中添加撤销,反撤销 3.拖两个节点然后连线,没有样式 4.添加的连线不能撤销,节点可以撤销

ps 从官网弄直接点过去的codesandbox,修改的有点问题,关掉报错就好了,

预期行为

开启history和keyboard以后,设置撤销和返回,样式正常而且功能正常使用

平台

屏幕截图或视频(可选)

暂无

补充说明(可选)

开启历史记录和快捷键方便操作

lishaopeng221 commented 2 years ago

补充截图 微信截图_20220302091313 微信截图_20220302095803

微信截图_20220302092535

xflow-bot[bot] commented 2 years ago

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

xflow-bot[bot] commented 2 years ago

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot 🤖, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the AntV community! 💪💯

xflow-bot[bot] commented 1 year ago

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.