Skip to content

Commit e2171f8

Browse files
committedDec 14, 2023
feat: expose values, errors and meta on form instance #4589
1 parent a07ba1d commit e2171f8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
 

Diff for: ‎.changeset/sweet-rivers-impress.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vee-validate": patch
3+
---
4+
5+
feat: expose some state on form instance

Diff for: ‎packages/vee-validate/src/Form.ts

+6
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ const FormImpl = /** #__PURE__ */ defineComponent({
191191
getValues,
192192
getMeta,
193193
getErrors,
194+
values,
195+
meta,
196+
errors,
194197
});
195198

196199
return function renderForm() {
@@ -240,6 +243,9 @@ export const Form = FormImpl as typeof FormImpl & {
240243
getValues: FormSlotProps['getValues'];
241244
getMeta: FormSlotProps['getMeta'];
242245
getErrors: FormSlotProps['getErrors'];
246+
meta: FormSlotProps['meta'];
247+
values: FormSlotProps['values'];
248+
errors: FormSlotProps['errors'];
243249
$slots: {
244250
default: (arg: FormSlotProps) => VNode[];
245251
};

0 commit comments

Comments
 (0)
Please sign in to comment.