-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
关于vue2使用teleport解决i18n国际化的问题 #4310
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
如果觉得改写 x6-vue-shape有难度,可以参考https://github.com/lloydzhou/x6-html-shape写一个 vue2-teleport的版本,这个改起来比较简单。 |
@lloydzhou 我这里试着改了一下,但是Object.keys(items)拿到的总是个空数组
|
@lloydzhou 另外这里好像不需要自己connet了,因为可以直接拿到shapeMaps ,值和items是一样的,不过在Object.kyes时也是个空的
|
shapeMaps不是vue里面的reactive的变量,只是一个常量。所以在vue里面使用的时候,如果值变化了,组件并不会更新 |
@lloydzhou 嗯嗯,后面还是用的items,但是没啥效果,渲染不到teleport上 |
问题描述
和 #1864 中遇到同样的场景
但是vue2版本的,如何使用teleport解决问题?
重现链接
无
重现步骤
无
预期行为
vue2版本中可以正常使用i18n
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: