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

Bug: 国际化Bug,切换语言时,查询表单的查询按钮语言没变 #5196

Closed
5 tasks done
Aaron-AnHe opened this issue Dec 20, 2024 · 3 comments · Fixed by #5205
Closed
5 tasks done

Bug: 国际化Bug,切换语言时,查询表单的查询按钮语言没变 #5196

Aaron-AnHe opened this issue Dec 20, 2024 · 3 comments · Fixed by #5205
Labels
bug Something isn't working

Comments

@Aaron-AnHe
Copy link

Version

Vben Admin V5

Describe the bug?

国际化翻译Bug,切换语言时,查询表单的查询按钮语言没变
1734683760740

Reproduction

const [Form, formApi] = useTableForm({
handleSubmit: async () => {
const formValues = formApi.form.values;
formApi.setLatestSubmissionValues(toRaw(formValues));
props.api.reload(formValues);
},
handleReset: async () => {
await formApi.resetForm();
const formValues = formApi.form.values;
formApi.setLatestSubmissionValues(formValues);
props.api.reload(formValues);
},
commonConfig: {
componentProps: {
class: 'w-full',
},
},
showCollapseButton: true,
submitButtonOptions: {
content: $t('common.query'),
},
// enter提交
submitOnEnter: true,
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
});

System Info

Windows
Edge

Relevant log output

No response

Validations

@likui628
Copy link
Collaborator

likui628 commented Dec 21, 2024

https://www.vben.pro/#/examples/vxe-table/form

20241221_115015.mp4

@mynetfan
Copy link
Collaborator

厉害啊,这都能发现

@Aaron-AnHe
Copy link
Author

您好,还是有点问题,现在在单独页面翻译没问题了,但是我切换到其他带有搜索表单的Tab菜单时,另一个搜索表单的搜索按钮还是没切换过来,我是后端佬,这个项目对我难度比较大,没有修复的能力

20241221_214902.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants