lew-ui 2.5.2 → 2.5.3

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.mjs CHANGED
@@ -11791,7 +11791,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11791
11791
  };
11792
11792
  if (props2.okByEnter) {
11793
11793
  watch(enter, (v) => {
11794
+ var _a2;
11794
11795
  if (v && isFocus.value) {
11796
+ (_a2 = lewInputRef.value) == null ? void 0 : _a2.blur();
11795
11797
  ok();
11796
11798
  }
11797
11799
  });
@@ -11882,7 +11884,6 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11882
11884
  type: unref(getType),
11883
11885
  readonly: _ctx.readonly,
11884
11886
  maxlength: _ctx.maxLength,
11885
- onkeypress: "if(window.event.keyCode==13) this.blur()",
11886
11887
  onInput: _cache[3] || (_cache[3] = ($event) => emit2("input", modelValue2.value)),
11887
11888
  onChange: _cache[4] || (_cache[4] = ($event) => emit2("change", modelValue2.value)),
11888
11889
  onBlur: blur,
@@ -11988,7 +11989,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11988
11989
  };
11989
11990
  }
11990
11991
  });
11991
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-59da6657"]]);
11992
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-916732fc"]]);
11992
11993
  const inputNumberModel = {
11993
11994
  modelValue: {
11994
11995
  type: Number,