eco-vue-js 0.11.28 → 0.11.29
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAaA;
|
1
|
+
{"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAaA;AAqSA,OAAO,EAAC,KAAK,KAAK,EAAmG,MAAM,KAAK,CAAA;AAUhI,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAiRF,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;iBA5DvC,MAAM,KAAK,EAAE;;iBAAb,MAAM,KAAK,EAAE;;;;;;EAiEvB;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wBAtGC,MAAM;qBAtFN,IAAI;;;;;;;;;;;;;;;OAsMxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -113,6 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
113
113
|
};
|
114
114
|
const doValidate = (silent, path) => {
|
115
115
|
if (props.name && path && !path[props.name]) return;
|
116
|
+
if (errorMessage.value) return errorMessage.value;
|
116
117
|
const message = _validate(modelValue.value);
|
117
118
|
errorMessage.value = message;
|
118
119
|
if (!silent) {
|
@@ -127,6 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
127
128
|
const message = messages[props.name];
|
128
129
|
if (typeof message === "string") errorMessage.value = message;
|
129
130
|
else if (message instanceof Array) errorMessage.value = message.join(", ");
|
131
|
+
if (message) isErrorShown.value = true;
|
130
132
|
};
|
131
133
|
const initModel = () => {
|
132
134
|
isErrorShown.value = false;
|