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引入antvX6,配置全局resizing,启用调整节点大小的功能失败 #3794

Closed
dongwengao opened this issue Jul 19, 2023 · 4 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@dongwengao
Copy link

Describe the bug

vue引入antvX6,配置全局resizing,启用调整节点大小的功能失败,但通过直接引入js可以设置节点大小可调整;
按照官方文档设置节点可调整大小,设置完后右边不生效:
屏幕截图 2023-07-19 232357
Vue的代码:
图片
官方文档地址:
https://x6.antv.vision/zh/docs/tutorial/basic/interacting

但通过script标签引入的方式,可以设置成功
图片

图片

Your Example Website or App

Steps to Reproduce the Bug or Issue

1.创建vue项目,引入antv X6
2.按官网教程添加引入Graph,,设置graph宽度,高度,和全局设置节点可调整大小的配置resizing : {enabled:true},后添加两个节点和一个连线
3.运行后,节点无法点击选中,也无法调整大小
4.按官网通过引入 script标签的方式可以调整节点大小

Expected behavior

vue的方式也能调整几点大小

Screenshots or Videos

No response

Platform

  • OS:windows
  • Browser:Chrome,Edge
  • Version: ...

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 19, 2023

👋 @dongwengao

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

你使用的 X6 是哪个版本呢,如果是 2.x 版本,使用方式参考文档

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jul 25, 2023
@dongwengao
Copy link
Author

你使用的 X6 是哪个版本呢,如果是 2.x 版本,使用方式参考文档

是的,用的2.x版本, npm install @antv/x6 --save默认安装的是2.x版本,您提供的方式我试一下...

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 26, 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 Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants