Commit 1aa900fd authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复外部传入 onSubmit 不生效的问题

parent 5e5ffd62
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-08-20 16:15:59
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-29 14:08:56
* @LastEditTime: 2021-08-02 15:44:03
* @Description: 可以带查询的表格,内置 formily,如果需要其他Form可以传入 customRenderSearchForm 配合 reload() 实现查询
*/
import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
......@@ -181,8 +181,8 @@ const NormalTable: React.ForwardRefRenderFunction<NormalTableRefHandleType, Norm
{searchFormProps && !customRenderSearchForm && (
<SearchForm
value={searchValues}
{...searchFormProps}
onSubmit={handleSearchFormSubmit}
{...searchFormProps}
/>
)}
{customRenderSearchForm && !searchFormProps && customRenderSearchForm()}
......
......@@ -12,9 +12,7 @@ import NiceForm from '@/components/NiceForm';
const formActions = createFormActions();
export interface SearchFormIProps extends Omit<IAntdSchemaFormProps, 'actions'> {
}
export interface SearchFormIProps extends IAntdSchemaFormProps {}
const SearchForm: React.FC<SearchFormIProps> = (props) => {
const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment