Skip to content

Commit 261bb6a

Browse files
AmazingTurtleturtle
andauthored
remove unused onReady prop and update README.md (#247)
Co-authored-by: turtle <[email protected]>
1 parent cd1e88a commit 261bb6a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ React.render(<Upload />, container);
5858
|className | string | - | root component className |
5959
|disabled | boolean | false | whether disabled |
6060
|component | "div"|"span" | "span"| wrap component name |
61-
|onReady | function | | only call when supportServerRender is true, upload is rendered completely |
6261
|action| string &#124; function(file): string &#124; Promise&lt;string&gt; | | form action url |
6362
|method | string | post | request method |
6463
|directory| boolean | false | support upload whole directory |

src/Upload.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class Upload extends Component {
1313
headers: {},
1414
name: 'file',
1515
multipart: false,
16-
onReady: empty,
1716
onStart: empty,
1817
onError: empty,
1918
onSuccess: empty,
@@ -24,10 +23,6 @@ class Upload extends Component {
2423
openFileDialogOnClick: true,
2524
}
2625

27-
componentDidMount() {
28-
this.props.onReady();
29-
}
30-
3126
abort(file) {
3227
this.uploader.abort(file);
3328
}

0 commit comments

Comments
 (0)