mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
add onRemove for upload
This commit is contained in:
parent
61bd8abab0
commit
c2b4b60267
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user