tsv2-library 1.1.0-dev-alpha.35 → 1.1.0-dev-alpha.37
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.
|
@@ -9,6 +9,7 @@ export type FieldValidation<T = FieldValue | undefined> = {
|
|
|
9
9
|
errorMessage?: Ref<string | undefined>;
|
|
10
10
|
setErrors?: (errors?: string | string[]) => void;
|
|
11
11
|
handleReset?: () => void;
|
|
12
|
+
validate?: () => void;
|
|
12
13
|
} | (Omit<FieldContext, 'value'> & {
|
|
13
14
|
value: T;
|
|
14
15
|
});
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -71963,7 +71963,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
71963
71963
|
var _a;
|
|
71964
71964
|
try {
|
|
71965
71965
|
const { data: body } = await AssetsServices.postAssetList({
|
|
71966
|
-
_id: props.id,
|
|
71966
|
+
_id: JSON.stringify([props.id]),
|
|
71967
71967
|
tag: tag2
|
|
71968
71968
|
});
|
|
71969
71969
|
serialNumber.value = device2;
|
|
@@ -78275,6 +78275,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
78275
78275
|
},
|
|
78276
78276
|
{ immediate: true }
|
|
78277
78277
|
);
|
|
78278
|
+
watch(
|
|
78279
|
+
() => props.invalid,
|
|
78280
|
+
() => {
|
|
78281
|
+
var _a2;
|
|
78282
|
+
(_a2 = field2 == null ? void 0 : field2.validate) == null ? void 0 : _a2.call(field2);
|
|
78283
|
+
}
|
|
78284
|
+
);
|
|
78278
78285
|
return (_ctx, _cache) => {
|
|
78279
78286
|
return openBlock(), createBlock(_sfc_main$1o, {
|
|
78280
78287
|
info: _ctx.fieldInfo,
|