Skip to content

Commit

Permalink
feat: add resetInitValue api.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 15, 2022
1 parent 04161d0 commit c8c1067
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export default class Validator {
rules: Rules;
values: Values;
initValues?: Values;
set resetInitValue(val: Values);
messagesShown: boolean;
errorMessages: Partial<Record<string, string>>;
showMessages: () => boolean;
Expand Down
1 change: 1 addition & 0 deletions packages/core/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class Validator {
rules: Rules;
values: Values;
initValues?: Values;
set resetInitValue(val: Values);
messagesShown: boolean;
errorMessages: Partial<Record<string, string>>;
showMessages: () => boolean;
Expand Down
14 changes: 12 additions & 2 deletions packages/core/dist/validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/dist/validator.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/core/dist/validator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c8c1067

Please sign in to comment.