30 lines
		
	
	
		
			697 B
		
	
	
	
		
			TypeScript
		
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			697 B
		
	
	
	
		
			TypeScript
		
	
	
import type { FormInstance, FormProps } from "antd/es/form";
 | 
						|
import type { FC, ReactNode } from "react";
 | 
						|
 | 
						|
/**
 | 
						|
 * 表单值类型
 | 
						|
 */
 | 
						|
export type FormValues = Record<string, any>;
 | 
						|
 | 
						|
export interface ImportFileProps extends Omit<FormProps, "form"> {
 | 
						|
  /** 弹窗是否显示 */
 | 
						|
  visible: boolean;
 | 
						|
  /** 弹窗标题 */
 | 
						|
  title?: string;
 | 
						|
  /** 模板文件地址 */
 | 
						|
  templateUrl: string;
 | 
						|
  /** 子组件 */
 | 
						|
  children?: ReactNode | ((props: { form: FormInstance }) => ReactNode);
 | 
						|
  /** 确认回调 */
 | 
						|
  onConfirm: (values: FormValues) => void;
 | 
						|
  /** 取消回调 */
 | 
						|
  onCancel: () => void;
 | 
						|
}
 | 
						|
 | 
						|
/**
 | 
						|
 * 导入文件组件
 | 
						|
 */
 | 
						|
declare const ImportFile: FC<ImportFileProps>;
 | 
						|
 | 
						|
export default ImportFile;
 |