Update main.js
This commit is contained in:
parent
479c9c1fb0
commit
b8b860661a
|
@ -47,11 +47,18 @@ export default class form extends React.Component {
|
||||||
let formCompontent = dom.getElementsByClassName("form-compontent")
|
let formCompontent = dom.getElementsByClassName("form-compontent")
|
||||||
let rules_item = _.get(this.props.rules, prop)
|
let rules_item = _.get(this.props.rules, prop)
|
||||||
let item = formCompontent[0].firstChild;
|
let item = formCompontent[0].firstChild;
|
||||||
|
|
||||||
console.log("shuru")
|
console.log("shuru")
|
||||||
console.log(this.props.rules)
|
console.log(this.props.rules)
|
||||||
console.log(prop)
|
console.log(prop)
|
||||||
console.log(item)
|
console.log(item)
|
||||||
console.log(rules_item)
|
console.log(rules_item)
|
||||||
|
|
||||||
|
if(!rules_item)
|
||||||
|
{
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
for (let j = 0; j < rules_item.length; j++) {
|
for (let j = 0; j < rules_item.length; j++) {
|
||||||
|
|
||||||
if (rules_item[j].type == "required") {
|
if (rules_item[j].type == "required") {
|
||||||
|
|
Loading…
Reference in New Issue