-
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
x6-vue-shape是否可以支持除了provide,在h渲染函数通过props传入方法 #3756
Comments
👋 @gxy5202 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
期待 vue 大神来解决该问题。👩💻 |
已提交pr |
请升级 @antv/x6-vue-shape 到 2.1.1 版本。 |
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. |
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
The text was updated successfully, but these errors were encountered: