feat: add submitOnEnter configuration to form (#4670)

This commit is contained in:
Vben
2024-10-17 22:53:05 +08:00
committed by GitHub
parent f89f4f32c7
commit 6cd9937c03
7 changed files with 29 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const [BaseForm, baseFormApi] = useVbenForm({
class: 'w-full',
},
},
// 提交函数
handleSubmit: onSubmit,
// 垂直布局label和input在不同行值为vertical

View File

@@ -65,6 +65,8 @@ const formOptions: VbenFormProps = {
],
// 控制表单是否显示折叠按钮
showCollapseButton: true,
// 按下回车时是否提交表单
submitOnEnter: false,
};
const gridOptions: VxeGridProps<RowType> = {