fix:修复input-file组件在非表单模式下自动回填报错问题 (#2551)

Co-authored-by: qinhaoyan <qinhaoyan@baidu.com>
This commit is contained in:
qinhaoyan 2021-09-13 18:33:27 +08:00 committed by GitHub
parent bf81745f82
commit a2b50f7bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ order: 21
## 自动填充
上传成功后,可以通过配置 `autoFill` 将上传接口返回的值填充到某个表单项中:
上传成功后,可以通过配置 `autoFill` 将上传接口返回的值填充到某个表单项中(在非表单下暂不支持)
```schema: scope="body"
{
@ -111,7 +111,7 @@ order: 21
}
},
{
"type": "text",
"type": "input-text",
"name": "myUrl",
"label": "url"
}

View File

@ -866,7 +866,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
}
: files[0]
);
onBulkChange(toSync);
onBulkChange && onBulkChange(toSync);
}
}