Use props

Related #7706
This commit is contained in:
Wei Zhu 2017-11-10 09:47:30 +08:00
parent c1ce2cd82c
commit 0c7ce9db17

View File

@ -55,8 +55,9 @@ export default class Upload extends React.Component<UploadProps, any> {
constructor(props) {
super(props);
this.state = {
fileList: this.props.fileList || this.props.defaultFileList || [],
fileList: props.fileList || props.defaultFileList || [],
dragState: 'drop',
};
}