-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
`
render() {
console.log(this);
console.log("===");
return (
<div className="page2-page">
<PageHead title="导入历史订单" description="xxxx。"/>
<Tab defaultActiveKey="taobao-import" onChange={this.handleChange}>
{
tabs.map(item => <TabPane key={item.key} tab={item.tab}
onClick={this.handleClick}></TabPane>)
}
</Tab>
<DownLoadItem/>
<div className="title">
第二步: 上传历史订单
</div>
<div className="content">
<FileUpload options={this.uploadOptions}>
<p>You have uploaded {this.state.rate}</p>
<Button ref="chooseAndUpload" type="primary">选中文件</Button>
</FileUpload>
</div>
</div>
);
}
`
为什么当上传的时候,this.state.rate没有值?不会变化为什么?
uploading: function (progress) {
console.log(this)
let rate = progress.loaded / progress.total + '%';
this.setState({rate})
console.log('loading...', rate)
message.error(Upload failed,)
}
Metadata
Metadata
Assignees
Labels
No labels