Commit 78575f5a authored by 张烨's avatar 张烨

feat: update Upload

parent 6492197d
......@@ -59,7 +59,25 @@ class PicturesWall extends React.Component<PicturesWallType> {
name: '熊猫运维中台系统',
status: 'done',
}] as UploadFile<any>[] : [],
};
};
update = () =>{
if(this.props.value){
this.setState({
fileList: Array.isArray(this.props.value) ? this.props.value.map((v) => ({
url: v,
uid: uuid(8, 16),
name: '熊猫运维中台系统',
status: 'done',
})) as UploadFile<any>[]: [{
url: this.props.value,
uid: uuid(8, 16),
name: '熊猫运维中台系统',
status: 'done',
}] as UploadFile<any>[]
})
}
}
handleCancel = () => this.setState({ previewVisible: false });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment