mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
commit
cc8f8e0c16
@ -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