UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

31 lines (30 loc) 1.04 kB
import React, { Component } from 'react'; import { UploadFile, UploadListProps } from './interface'; import { previewImage } from './utils'; import { ConfigContextValue } from '../config-provider/ConfigContext'; export default class UploadList extends Component<UploadListProps, any> { static displayName: string; static get contextType(): React.Context<ConfigContextValue>; static defaultProps: { listType: string; progressAttr: { strokeWidth: number; showInfo: boolean; }; previewFile: typeof previewImage; showRemoveIcon: boolean; showPreviewIcon: boolean; dragUploadList: boolean; showFileSize: boolean; }; context: ConfigContextValue; handleClose: (file: UploadFile) => void; handlePreview: (file: UploadFile, e: React.SyntheticEvent<HTMLElement, Event>) => void; componentDidUpdate(): void; /** * 拖拽事件 * @param result */ onDragEnd: (result: any) => void; render(): JSX.Element; }