@avilang/practical-ui 0.3.69 → 0.3.70
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.
- package/dist/index.js +13 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30292,13 +30292,21 @@ const Kr = /* @__PURE__ */ Object.assign({
|
|
|
30292
30292
|
}),
|
|
30293
30293
|
emits: /* @__PURE__ */ Bt(["blur", "input", "enter"], ["update:modelValue"]),
|
|
30294
30294
|
setup(e, { expose: t, emit: r }) {
|
|
30295
|
-
const o = Bn(), i = sn(e, "modelValue"), a = I(
|
|
30295
|
+
const o = Bn(), i = sn(e, "modelValue"), a = I(""), s = r;
|
|
30296
|
+
Me(
|
|
30297
|
+
i,
|
|
30298
|
+
(h) => {
|
|
30299
|
+
h !== a.value && (a.value = h);
|
|
30300
|
+
},
|
|
30301
|
+
{ immediate: !0 }
|
|
30302
|
+
);
|
|
30296
30303
|
function l() {
|
|
30297
30304
|
let h = a.value;
|
|
30298
|
-
if (
|
|
30305
|
+
if (e.trim) {
|
|
30299
30306
|
const p = h.trim();
|
|
30300
|
-
|
|
30301
|
-
}
|
|
30307
|
+
a.value = p, i.value = p, h = p;
|
|
30308
|
+
} else
|
|
30309
|
+
i.value = h;
|
|
30302
30310
|
return h;
|
|
30303
30311
|
}
|
|
30304
30312
|
let d = 0;
|
|
@@ -30312,7 +30320,7 @@ const Kr = /* @__PURE__ */ Object.assign({
|
|
|
30312
30320
|
s("blur", { value: p, isTriggerByEnter: h });
|
|
30313
30321
|
}
|
|
30314
30322
|
function c(h) {
|
|
30315
|
-
e.lazy === !1 && (i.value = h)
|
|
30323
|
+
a.value = h, e.lazy === !1 && (i.value = h);
|
|
30316
30324
|
let p = h;
|
|
30317
30325
|
e.trim && (p = p.trim()), s("input", { value: p, lazy: e.lazy });
|
|
30318
30326
|
}
|