import React from 'react'; import Animate from 'rc-animate'; import Icon from '../iconfont'; const prefixCls = 'ant-upload'; import { Line } from '../progress'; export default React.createClass({ getDefaultProps() { return { items: [], progressAttr: { strokeWidth: 3, showInfo: false } }; }, handleClose(file) { this.props.onRemove(file); }, render() { let list = this.props.items.map((file) => { let progress; let infoUploadingClass = ''; if (file.status === 'uploading') { progress =
; infoUploadingClass = ' ' + prefixCls + '-list-item-uploading'; } return (
{file.name}
{ progress }
); }); return
{list}
; } });