-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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组件渲染节点内容时,如何让节点的宽高等于vue组件本身的宽高 #2964
Comments
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. |
这个在框架内部是不容易做到的,但是外部可以实现,在节点内部的 vue 组件渲染完成后,获取尺寸,然后 resize 节点。不过还是建议在项目中固定节点宽和高。 |
谢谢,按你说的问题已解决 |
您好 我试着写了一下 resize您是怎么用的 方面截个代码图片吗 |
同问, 方便截个代码片段图片吗 |
到现在我也没解决 哈哈
不弃不离
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年2月27日(星期二) 上午10:22
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [antvis/X6] 使用vue组件渲染节点内容时,如何让节点的宽高等于vue组件本身的宽高 (Issue #2964)
同问, 方便截个代码片段图片吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
方便截个代码片段图片吗 |
把高度写死就支持我想做的业务了. 现在就是不想写死 |
我当时就是写死了
不弃不离
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年2月27日(星期二) 上午10:27
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [antvis/X6] 使用vue组件渲染节点内容时,如何让节点的宽高等于vue组件本身的宽高 (Issue #2964)
到现在我也没解决 哈哈 不弃不离 @.***
…
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年2月27日(星期二) 上午10:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [antvis/X6] 使用vue组件渲染节点内容时,如何让节点的宽高等于vue组件本身的宽高 (Issue #2964) 同问, 方便截个代码片段图片吗 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
把高度写死就支持我想做的业务了. 现在就是不想写死
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Describe the feature you'd like to request
渲染vue节点的时候,如果注册自定义节点时,不指定宽高,渲染出来后,容纳vue节点内容的foreignObject的宽高就都是1px,这就造成了连接桩的位置全都集中在一点
Describe the solution you'd like
希望渲染vue节点后,foreignObject的宽高自动被vue节点充满,不需要在注册的时候显示指定宽高
Describe alternatives you've considered
无
Your Example Website or App
No response
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: