Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用vue节点声明自定义节点时,会出现长度不会自动更新的情况 #3885

Closed
YUST2020 opened this issue Sep 2, 2023 · 3 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@YUST2020
Copy link

YUST2020 commented Sep 2, 2023

问题描述

声明了一个自定义vue节点,按照http://x6.antv.antgroup.com/tutorial/intermediate/group#%E5%B1%95%E5%BC%80%E4%B8%8E%E6%8A%98%E5%8F%A0%E7%88%B6%E8%8A%82%E7%82%B9 的内容增加了节点大小变化的实时监听
image
出现了通过parent.prop修改size时,foreignObject标签没有自动同步更新大小的情况
但通过Transform插件改变节点大小后就能正常响应大小的自适应变化了,后续再更改prop也能正常改变大小,可能是vueshape内部有某些响应式的问题?
求解这是什么原因,或者有什么办法手动触发tranform插件的拖拽大小吗?

重现链接

暂无

重现步骤

1.声明一个vue自定义节点
2.加入http://x6.antv.antgroup.com/tutorial/intermediate/group#%E5%B1%95%E5%BC%80%E4%B8%8E%E6%8A%98%E5%8F%A0%E7%88%B6%E8%8A%82%E7%82%B9中的代码
3.发现通过prop修改size时foreignObject标签没有同步发生变化

预期行为

期望第一次修改prop.size时能够自适应改变foreignObject标签的长宽

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

能否提供一个可以复现的 demo?

@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label Oct 3, 2023
@NewByVector
Copy link
Contributor

因为无法复现你的问题,暂时关闭。

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 11, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants