@flatbiz/antd
Version:
23 lines (20 loc) • 631 B
TypeScript
import { RcFile } from 'antd/lib/upload/index.js';
import { ReactElement, ReactNode } from 'react';
export type FileSelectProps = {
buttonName?: string | ReactElement;
children?: ReactNode;
/** 上传按钮与文件排版 默认:horizontal */
direction?: "horizontal" | "hertical";
/** 可选择文件格式,默认:.xlsx,.xls */
accept?: string;
onChange?: (file?: RcFile) => void;
className?: string;
};
/**
* 文件选择,内部不调用服务上传
* ```
* 默认选择文件格式:.xlsx,.xls
* ```
*/
export declare const FileSelect: (props: FileSelectProps) => import("react").JSX.Element;
export {};