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-shape teleport渲染问题 #15

Closed
happy-mht opened this issue Aug 12, 2022 · 3 comments
Closed

vue-shape teleport渲染问题 #15

happy-mht opened this issue Aug 12, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@happy-mht
Copy link

使用teleport优化节点,但是一旦设置 node 的visible =false, 然后visible还原为true,此时,修改node的属性(比如移动位置,修改大小)不会触发视图刷新,好像是model层的变化不会被view层接收到了,希望这问题早点能解决。

@lloydzhou
Copy link
Owner

antvis/X6#2505 和这个issue重复了

@lloydzhou lloydzhou added the duplicate This issue or pull request already exists label Aug 15, 2022
@lloydzhou
Copy link
Owner

我在使用antv-x6-vue渲染的时候,并没有复现

  1. temp1.setVisible(false)
  2. temp1.setSize(300, 300)
  3. temp1.setVisible(true)
  4. temp1.setSize(200, 200)

直接在控制台连续的调用setVisible和setSize,这个VueShape的节点是能够正常渲染的。

image

@mht1993 你能提供一个能复现的demo吗?比如在线的codesandbox之类的链接。

或者我后面不使用antv-x6-vue再重新测试一下

@lloydzhou
Copy link
Owner

修复代码已合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants