chore: 修改为官方的enter提交

This commit is contained in:
dap 2024-10-18 07:47:40 +08:00
parent 7e7e23fc09
commit 0796f4327c
2 changed files with 2 additions and 4 deletions

View File

@ -290,8 +290,6 @@ export interface FormRenderProps<
export interface ActionButtonOptions extends VbenButtonProps { export interface ActionButtonOptions extends VbenButtonProps {
content?: string; content?: string;
// 原生类型
htmlType?: 'button' | 'reset' | 'submit';
show?: boolean; show?: boolean;
} }

View File

@ -75,9 +75,9 @@ const [Form, formApi] = useTableForm({
showCollapseButton: true, showCollapseButton: true,
submitButtonOptions: { submitButtonOptions: {
content: $t('common.query'), content: $t('common.query'),
// antd submit
htmlType: 'submit',
}, },
// enter
submitOnEnter: true,
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3', wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
}); });