mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
chore: suppress warning
This commit is contained in:
parent
b72d18fd44
commit
632cd36e63
@ -14,7 +14,9 @@ function animate(node, show, transitionName, done) {
|
||||
}
|
||||
|
||||
// Fix safari flash bug
|
||||
/*eslint-disable */
|
||||
node.style.display = show ? 'block' : 'none';
|
||||
/*eslint-enable */
|
||||
velocity(node, transitionName, {
|
||||
duration: 240,
|
||||
complete,
|
||||
|
@ -163,7 +163,9 @@ const AntUpload = React.createClass({
|
||||
}
|
||||
},
|
||||
handleManualRemove(file) {
|
||||
/*eslint-disable */
|
||||
file.status = 'removed';
|
||||
/*eslint-enable */
|
||||
this.handleRemove(file);
|
||||
},
|
||||
onChange(info) {
|
||||
|
@ -40,9 +40,13 @@ export default React.createClass({
|
||||
file.thumbUrl !== undefined) {
|
||||
return;
|
||||
}
|
||||
/*eslint-disable */
|
||||
file.thumbUrl = '';
|
||||
/*eslint-enable */
|
||||
previewFile(file.originFileObj, (previewDataUrl) => {
|
||||
/*eslint-disable */
|
||||
file.thumbUrl = previewDataUrl;
|
||||
/*eslint-enable */
|
||||
this.forceUpdate();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user