mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix:修复input-file组件在非表单模式下自动回填报错问题 (#2551)
Co-authored-by: qinhaoyan <qinhaoyan@baidu.com>
This commit is contained in:
parent
bf81745f82
commit
a2b50f7bb1
@ -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"
|
||||
}
|
||||
|
@ -866,7 +866,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
}
|
||||
: files[0]
|
||||
);
|
||||
onBulkChange(toSync);
|
||||
onBulkChange && onBulkChange(toSync);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user