-
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组件渲染节点,节点组件内无法获取i18n等父工程vue实例配置 #1864
Comments
👋 @tweet 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. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the AntV community! 💪💯 |
更新到 v1.32.4 版本以上,使用 vue 的 teleport 方案,能解决上述问题。 |
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. |
问题描述
vue工程使用vue组件渲染节点,节点组件内无法获取i18n等父工程vue实例配置,期望节点组件可以重用父工程相关设置,这样可以统一代码调用风格,比如可以在父子工程均可以使用vue-i18n实例实现国际化相关功能。
以下为调用示例,无论使用
vue
的parent
还是i18n
属性均会导致页面渲染报错重现链接
不涉及
重现步骤
报错内容
跟踪发现是
@antv/x6/es/model/store.js
行15需要对传入的数据做DeepClone报错预期行为
可以在x6的节点组件中正常使用vue父工程的相关功能,如国际化
this.$t("xxx.locale")
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
期待能尽快功能完善
The text was updated successfully, but these errors were encountered: