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

x6-vue-shape是否可以支持除了provide,在h渲染函数通过props传入方法 #3756

Closed
gxy5202 opened this issue Jul 9, 2023 · 5 comments
Labels
help wanted 需要认领 Issues to which we welcome contribution from the community

Comments

@gxy5202
Copy link
Contributor

gxy5202 commented Jul 9, 2023

Describe the feature you'd like to request

由于是机密项目,所以无法提供源码环境,但是可以描述现在的问题。项目是vue3+X6。通过webpack进行模块联邦打包,作为一个微前端应用提供给其他项目使用,但是经过webpack打包后,由于作用域的原因,x6-vue-shape插件通过provide提供的方法无法注册到vue实例上,导致inject获取不到getNode方法。

Describe the solution you'd like

在我研读源码后,发现x6-vue-shape在通过h函数渲染时可以将getNode等方法直接通过props传入,即可解决该问题

Describe alternatives you've considered

由于构建和打包工具的不同,我们无法预测用户使用的哪种打包环境,而由于Vue在不同构建工具下打包出来的作用域可能会有所不同,特别是模块联邦这种比较特殊的场景,所以希望插件能提供一种较稳定的方式。

Your Example Website or App

No response

Screenshots or Videos

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 9, 2023

👋 @gxy5202

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 NewByVector added the help wanted 需要认领 Issues to which we welcome contribution from the community label Jul 10, 2023
@NewByVector
Copy link
Contributor

期待 vue 大神来解决该问题。👩‍💻

@gxy5202
Copy link
Contributor Author

gxy5202 commented Jul 10, 2023

期待 vue 大神来解决该问题。👩‍💻

已提交pr

@NewByVector
Copy link
Contributor

请升级 @antv/x6-vue-shape 到 2.1.1 版本。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 12, 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 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted 需要认领 Issues to which we welcome contribution from the community
Projects
None yet
Development

No branches or pull requests

2 participants