chore: 修改为官方的enter提交
This commit is contained in:
parent
7e7e23fc09
commit
0796f4327c
@ -290,8 +290,6 @@ export interface FormRenderProps<
|
||||
|
||||
export interface ActionButtonOptions extends VbenButtonProps {
|
||||
content?: string;
|
||||
// 原生类型
|
||||
htmlType?: 'button' | 'reset' | 'submit';
|
||||
show?: boolean;
|
||||
}
|
||||
|
||||
|
@ -75,9 +75,9 @@ const [Form, formApi] = useTableForm({
|
||||
showCollapseButton: true,
|
||||
submitButtonOptions: {
|
||||
content: $t('common.query'),
|
||||
// antd 按钮原生类型 需要设置为submit才能在输入框回车提交
|
||||
htmlType: 'submit',
|
||||
},
|
||||
// enter提交
|
||||
submitOnEnter: true,
|
||||
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user