File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
packages/vee-validate/src Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " vee-validate " : patch
3+ ---
4+
5+ feat: expose some state on form instance
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments