mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-20 22:05:47 -04:00
fix(regular-validation.js): fixed non-required fields still verify rules width empty value problem
fix #16
This commit is contained in:
@@ -150,11 +150,11 @@ class RegularValidation {
|
||||
data: { rootData: formData, constData: globalConfig.constants }
|
||||
}) === false ||
|
||||
ncformUtils.smartAnalyzeVal(
|
||||
_get(rules, "required.value", {
|
||||
_get(rules, "required.value"), {
|
||||
idxChain,
|
||||
data: { rootData: formData, constData: globalConfig.constants }
|
||||
}) === false
|
||||
)) &&
|
||||
) &&
|
||||
!ncformUtils.notEmptyVal(value)
|
||||
) {
|
||||
// 如果不存在required验证条件,且value为空时,直接验证通过
|
||||
|
||||
Reference in New Issue
Block a user