chowa
Version:
UI component library based on React
28 lines (27 loc) • 781 B
TypeScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
export interface UploadDragProps {
disabled: boolean;
triggerUpload: () => void;
directory: boolean;
appendUploadFile: (file: File) => void;
}
export interface UploadDragState {
active: boolean;
}
declare class UploadDrag extends React.PureComponent<UploadDragProps, UploadDragState> {
constructor(props: UploadDragProps);
private onDragEnterHandler;
private onDragLeaveHandler;
private onDropHandler;
private scanFiles;
render(): JSX.Element;
}
export default UploadDrag;