Update main.js
This commit is contained in:
parent
c89f3c79bd
commit
b0e7b605b6
|
@ -361,7 +361,7 @@ export default class form extends React.Component {
|
||||||
let formItem_com = _.get(formItem, "props.children.props");
|
let formItem_com = _.get(formItem, "props.children.props");
|
||||||
|
|
||||||
|
|
||||||
if(formItem_com.hasOwnProperty("children"))
|
if(formItem_com && formItem_com.hasOwnProperty("children"))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(_.isArray(formItem_com.children))
|
if(_.isArray(formItem_com.children))
|
||||||
|
@ -374,6 +374,16 @@ export default class form extends React.Component {
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
let coms = _.get(formItem, "props.children");
|
||||||
|
if(coms&&_.isArray(coms))
|
||||||
|
{
|
||||||
|
console.log(787787878)
|
||||||
|
console.log(coms)
|
||||||
|
formItem_com = coms[0].props;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(formItem)
|
||||||
//对应的验证规则
|
//对应的验证规则
|
||||||
let rules_item = _.get(this.props.rules, formItem.props.prop)
|
let rules_item = _.get(this.props.rules, formItem.props.prop)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue