feat(Form): formatter add rule param
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ export default createComponent({
|
||||
let value = this.formValue;
|
||||
|
||||
if (rule.formatter) {
|
||||
value = rule.formatter(value);
|
||||
value = rule.formatter(value, rule);
|
||||
}
|
||||
|
||||
if (!this.runSyncRule(rule, value)) {
|
||||
|
||||
Reference in New Issue
Block a user