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) {
|
componentDidUpdate(prevProps: FileProps) {
|
||||||
const props = this.props;
|
const props = this.props;
|
||||||
|
|
||||||
if (
|
if (prevProps.value !== props.value && this.emitValue !== props.value) {
|
||||||
prevProps.value !== props.value &&
|
|
||||||
this.emitValue !== props.value &&
|
|
||||||
props.formInited !== false
|
|
||||||
) {
|
|
||||||
const value: string | Array<string | FileValue> | FileValue = props.value;
|
const value: string | Array<string | FileValue> | FileValue = props.value;
|
||||||
const joinValues = props.joinValues;
|
const joinValues = props.joinValues;
|
||||||
const delimiter = props.delimiter as string;
|
const delimiter = props.delimiter as string;
|
||||||
@ -489,7 +485,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
|||||||
{
|
{
|
||||||
files: files
|
files: files
|
||||||
},
|
},
|
||||||
this.syncAutoFill
|
props.formInited !== false ? this.syncAutoFill : undefined
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user