We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vben Admin V5
playground示例中,【菜单管理】页面的Form表单的【标题】字段,修改标题时如果经历i18n的切换,会导致输入中断,影响体验。
const schema: VbenFormSchema[] = [ { component: 'Input', componentProps() { // 不需要处理多语言时就无需这么做 return { addonAfter: titleSuffix.value, onChange({ target: { value } }: ChangeEvent) { titleSuffix.value = value && $te(value) ? $t(value) : undefined; }, }; }, fieldName: 'meta.title', label: $t('system.menu.menuTitle'), rules: 'required', }, ];
System: OS: Windows 11 10.0.22631 CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12600KF Memory: 3.79 GB / 63.84 GB Binaries: Node: 20.17.0 - D:\work\nodejs\node.EXE Yarn: 1.22.22 - D:\work\nodejs\yarn.CMD npm: 10.8.2 - D:\work\nodejs\npm.CMD pnpm: 10.6.5 - D:\work\nodejs\pnpm.CMD Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Vben Admin V5
Describe the bug?
playground示例中,【菜单管理】页面的Form表单的【标题】字段,修改标题时如果经历i18n的切换,会导致输入中断,影响体验。
Reproduction
const schema: VbenFormSchema[] = [
{
component: 'Input',
componentProps() {
// 不需要处理多语言时就无需这么做
return {
addonAfter: titleSuffix.value,
onChange({ target: { value } }: ChangeEvent) {
titleSuffix.value = value && $te(value) ? $t(value) : undefined;
},
};
},
fieldName: 'meta.title',
label: $t('system.menu.menuTitle'),
rules: 'required',
},
];
System Info
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: