mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
Merge remote-tracking branch 'baidu/master'
This commit is contained in:
commit
72254ea1b7
@ -308,13 +308,13 @@ export default class ImageControl extends React.Component<
|
||||
name: file.name
|
||||
}));
|
||||
|
||||
this.setState({
|
||||
files: this.files = multiple
|
||||
? this.files.concat(files)
|
||||
: this.files.length
|
||||
? this.files
|
||||
: files.slice(0, 1)
|
||||
});
|
||||
// this.setState({
|
||||
// files: this.files = multiple
|
||||
// ? this.files.concat(files)
|
||||
// : this.files.length
|
||||
// ? this.files
|
||||
// : files.slice(0, 1)
|
||||
// });
|
||||
|
||||
env.alert(
|
||||
`您添加的文件${files.map(
|
||||
|
Loading…
Reference in New Issue
Block a user