You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-mergeWith(defaultData as unknown as GlobalConfigProvider, props.globalConfig),+Object.assign({}, mergeWith(defaultData as unknown as GlobalConfigProvider, props.globalConfig)),
The text was updated successfully, but these errors were encountered:
tdesign-vue-next 版本
1.10.1
重现链接
https://stackblitz.com/edit/angular-fvhxrp-77bkvd?file=package.json
重现步骤
任意 vue3.4以上的版本,用的另一个issue的连接。
期望结果
globalconfig具备响应,子组件国际化能通过globalconfig影响
实际结果
globalConfig无响应
框架版本
Vue3.4
补充说明
devtools查看 config-provider 中的globalConfig是具备响应式的
本地组件手动inject也是可以的,但是 TAlert 中的不会变
最终定位是computed返回的对象保持了引用:
tdesign-vue-next/src/config-provider/useConfig.tsx
Lines 70 to 75 in ada18a1
参考useConfig 本地node_modules手动修改测试可行:
The text was updated successfully, but these errors were encountered: