@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.
Files changed (2) hide show
  1. package/dist/index.js +13 -5
  2. 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(i.value == null ? "" : i.value), s = r;
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 (i.value = h, e.trim) {
30305
+ if (e.trim) {
30299
30306
  const p = h.trim();
30300
- i.value = p, a.value = p, h = p;
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), a.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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avilang/practical-ui",
3
3
  "type": "module",
4
- "version": "0.3.69",
4
+ "version": "0.3.70",
5
5
  "description": "Practical UI components created based on vue3",
6
6
  "main": "dist/index.js",
7
7
  "files": [