tsv2-library 1.0.61-beta.72 → 1.0.61-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,6 +120,14 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
|
|
|
120
120
|
* Clears the form fields.
|
|
121
121
|
*/
|
|
122
122
|
clearField: () => void;
|
|
123
|
+
/**
|
|
124
|
+
* Sets the errors for the form fields.
|
|
125
|
+
*/
|
|
126
|
+
setErrors: (errors: Partial<Record<string, string | undefined>>) => void;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the error for a specific field.
|
|
129
|
+
*/
|
|
130
|
+
setFieldError: (field: string, error: string | undefined) => void;
|
|
123
131
|
}
|
|
124
132
|
|
|
125
133
|
declare module '@vue/runtime-core' {
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -68443,7 +68443,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
68443
68443
|
setDialogClass();
|
|
68444
68444
|
}
|
|
68445
68445
|
});
|
|
68446
|
-
const { handleSubmit, values, resetForm, errors } = useForm$1();
|
|
68446
|
+
const { handleSubmit, values, resetForm, errors, setErrors, setFieldError } = useForm$1();
|
|
68447
68447
|
const isSubmitting = shallowRef(false);
|
|
68448
68448
|
provide("isSubmitting", isSubmitting);
|
|
68449
68449
|
const formState = shallowRef("submit");
|
|
@@ -68539,7 +68539,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
68539
68539
|
formElement,
|
|
68540
68540
|
clearField,
|
|
68541
68541
|
errors,
|
|
68542
|
-
values
|
|
68542
|
+
values,
|
|
68543
|
+
setErrors,
|
|
68544
|
+
setFieldError
|
|
68543
68545
|
});
|
|
68544
68546
|
return (_ctx, _cache) => {
|
|
68545
68547
|
var _a, _b, _c, _d, _e, _f;
|