mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 12:58:38 +08:00
fix: renderFormItems 兼容旧的用法
This commit is contained in:
parent
a90bb85c6c
commit
77e3cffa5e
@ -1251,7 +1251,7 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
|
||||
// 旧用法,让 wrapper 走走 compat 逻辑兼容旧用法
|
||||
// 后续可以删除。
|
||||
if (!body && schema.controls) {
|
||||
if (!body.length && schema.controls) {
|
||||
console.warn('请用 body 代替 controls');
|
||||
body = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user