add onRemove for upload

This commit is contained in:
yiminghe 2015-08-27 15:46:23 +08:00
parent 61bd8abab0
commit c2b4b60267

View File

@ -7,6 +7,9 @@ import getFileItem from './getFileItem';
const prefixCls = 'ant-upload';
let fileIndex = 0;
function noop() {
}
const AntUpload = React.createClass({
getInitialState() {
return {
@ -55,14 +58,11 @@ const AntUpload = React.createClass({
data: {},
accept: '',
uploadTip: '',
onStart() {
},
onError() {
},
onSuccess() {
},
onProgress() {
}
onStart: noop,
onError: noop,
onSuccess: noop,
onProgress: noop,
onRemove: noop,
};
},
render() {