File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/uni_modules/wot-design-uni/components/wd-form Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ async function validate(prop?: string): Promise<{ valid: boolean; errors: ErrorM
6161 valid = false
6262 break
6363 }
64- if (rule .pattern && ! rule .pattern .test (props . model [ prop ] )) {
64+ if (rule .pattern && ! rule .pattern .test (value )) {
6565 errors .push ({
6666 prop ,
6767 message: rule .message
@@ -71,7 +71,7 @@ async function validate(prop?: string): Promise<{ valid: boolean; errors: ErrorM
7171 }
7272 const { validator, ... ruleWithoutValidator } = rule
7373 if (validator ) {
74- const result = validator (props . model [ prop ] , ruleWithoutValidator )
74+ const result = validator (value , ruleWithoutValidator )
7575 if (isPromise (result )) {
7676 promises .push (
7777 result
You can’t perform that action at this time.
0 commit comments