You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
737 B
32 lines
737 B
import React from 'react';
|
|
import { FormInstance } from 'antd/lib/form';
|
|
/**
|
|
* 用于配置操作栏
|
|
*/
|
|
export interface SearchConfig {
|
|
/**
|
|
* 重置按钮的文本
|
|
*/
|
|
resetText?: string;
|
|
/**
|
|
* 提交按钮的文本
|
|
*/
|
|
submitText?: string;
|
|
}
|
|
export interface SubmitterProps {
|
|
form: FormInstance;
|
|
onSubmit?: () => void;
|
|
onReset?: () => void;
|
|
searchConfig?: SearchConfig;
|
|
/**
|
|
* 自定义操作的渲染的渲染
|
|
*/
|
|
render?: ((props: SubmitterProps, dom: JSX.Element[]) => React.ReactNode[] | false) | false;
|
|
}
|
|
/**
|
|
* FormFooter 的组件,可以自动进行一些配置
|
|
* @param props
|
|
*/
|
|
declare const Submitter: React.FC<SubmitterProps>;
|
|
export default Submitter;
|