feat: VxeTable搜索表单 enter提交
This commit is contained in:
parent
106476b755
commit
30b16fd5a8
@ -7,6 +7,7 @@
|
||||
- 支持菜单名称i18n
|
||||
- 登录页 验证码登录
|
||||
- Markdown编辑/预览组件(基于vditor)
|
||||
- VxeTable搜索表单 enter提交
|
||||
|
||||
**BUG FIXES**
|
||||
|
||||
|
@ -290,6 +290,8 @@ export interface FormRenderProps<
|
||||
|
||||
export interface ActionButtonOptions extends VbenButtonProps {
|
||||
content?: string;
|
||||
// 原生类型
|
||||
htmlType: 'button' | 'reset' | 'submit';
|
||||
show?: boolean;
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user