Commit 4392a036 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Form: fix support for dot-separated rule key

parent 0024a413
......@@ -230,7 +230,7 @@
var selfRules = this.rules;
var requiredRule = this.required !== undefined ? { required: !!this.required } : [];
formRules = formRules ? getPropByPath(formRules, this.prop || '').v : [];
formRules = formRules ? getPropByPath(formRules, this.prop || '').o[this.prop || ''] : [];
return [].concat(selfRules || formRules || []).concat(requiredRule);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment