feat: VxeTable搜索表单 enter提交

This commit is contained in:
dap 2024-10-15 19:56:57 +08:00
parent 106476b755
commit 30b16fd5a8
3 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@
- 支持菜单名称i18n
- 登录页 验证码登录
- Markdown编辑/预览组件(基于vditor)
- VxeTable搜索表单 enter提交
**BUG FIXES**

View File

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

View File

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