UploaderResult.js
689 Bytes
import React,{PropTypes} from 'react';
import {Button,Row,Col,ProgressBar} from 'react-bootstrap';
import cx from 'classnames';
import s from './Uploader.scss';
export class UploaderResult extends React.Component {
constructor(props) {
super(props);
}
static propTypes = {
result: PropTypes.object
}
render(){
const {result,placeholder}=this.props,self=this;
return (
<div className={cx('form-group')}>
{(result&&result.queued>0)&&<span className="help-block" ><small>您还有{result.queued}个文件未上传,请先上传后在提交表单。</small></span>}
</div>
)
}
}
export default UploaderResult;