mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
image增加初始值时编辑情况
This commit is contained in:
parent
eea00f0a83
commit
25ede26879
@ -487,13 +487,11 @@ export default class ImageControl extends React.Component<
|
||||
}
|
||||
|
||||
editImage(index: number) {
|
||||
const {multiple} = this.props;
|
||||
|
||||
const files = this.files;
|
||||
|
||||
this.setState({
|
||||
cropFile: {
|
||||
preview: files[index].preview as string,
|
||||
preview: files[index].preview || files[index].url as string,
|
||||
state: 'init'
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user