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.
33 lines
1.1 KiB
33 lines
1.1 KiB
import * as React from 'react';
|
|
import { ImagePickerPropTypes as BasePropsType } from './PropsType';
|
|
export interface ImagePickerPropTypes extends BasePropsType {
|
|
prefixCls?: string;
|
|
className?: string;
|
|
}
|
|
declare function noop(): void;
|
|
export default class ImagePicker extends React.Component<ImagePickerPropTypes, any> {
|
|
static defaultProps: {
|
|
prefixCls: string;
|
|
files: never[];
|
|
onChange: typeof noop;
|
|
onImageClick: typeof noop;
|
|
onAddImageClick: typeof noop;
|
|
onFail: typeof noop;
|
|
selectable: boolean;
|
|
multiple: boolean;
|
|
accept: string;
|
|
length: number;
|
|
disableDelete: boolean;
|
|
};
|
|
fileSelectorInput: HTMLInputElement | null;
|
|
getOrientation: (file: any, callback: (_: number) => void) => void;
|
|
getRotation: (orientation?: number) => number;
|
|
removeImage: (index: number) => void;
|
|
addImage: (imgItem: any) => void;
|
|
onImageClick: (index: number) => void;
|
|
onFileChange: () => void;
|
|
parseFile: (file: any, index: number) => Promise<{}>;
|
|
render(): JSX.Element;
|
|
}
|
|
export {};
|