mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
commit
832a6ec500
@ -440,11 +440,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
componentDidUpdate(prevProps: FileProps) {
|
||||
const props = this.props;
|
||||
|
||||
if (
|
||||
prevProps.value !== props.value &&
|
||||
this.emitValue !== props.value &&
|
||||
props.formInited !== false
|
||||
) {
|
||||
if (prevProps.value !== props.value && this.emitValue !== props.value) {
|
||||
const value: string | Array<string | FileValue> | FileValue = props.value;
|
||||
const joinValues = props.joinValues;
|
||||
const delimiter = props.delimiter as string;
|
||||
@ -489,7 +485,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
{
|
||||
files: files
|
||||
},
|
||||
this.syncAutoFill
|
||||
props.formInited !== false ? this.syncAutoFill : undefined
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user