/// import PropTypes from 'prop-types'; import 'viewerjs-extend/dist/viewer.css'; import './style/index.less'; /** * @param {object} props * @param {string} props.action - 接口地址 * @param {object} props.fileList - 文件列表 * @param {number} props.maximum - 最多文件数量 * @param {string} props.listType - 上传列表的内建样式,支持三种基本样式 text, picture 和 picture-card * @param {func} props.onChange - 父级回调 * @param {string} props.name - 发到后台的文件参数名 * **/ declare function EnhancedUpload(props: any): JSX.Element; declare namespace EnhancedUpload { var defaultProps: { maximum: number; listType: string; onChange: () => void; name: string; }; var propTypes: { action: PropTypes.Requireable; fileList: PropTypes.Requireable<(object | null | undefined)[]>; maximum: PropTypes.Requireable; listType: PropTypes.Requireable; name: PropTypes.Requireable; onChange: PropTypes.Requireable<(...args: any[]) => any>; disabled: PropTypes.Requireable; }; } export default EnhancedUpload;