lew-ui 2.5.3 → 2.5.4

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
@@ -11794,13 +11794,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11794
11794
  var _a2;
11795
11795
  if (v && isFocus.value) {
11796
11796
  (_a2 = lewInputRef.value) == null ? void 0 : _a2.blur();
11797
- ok();
11797
+ emit2("ok", modelValue2.value);
11798
11798
  }
11799
11799
  });
11800
11800
  }
11801
- const ok = useDebounceFn(() => {
11802
- emit2("ok", modelValue2.value);
11803
- }, 250);
11804
11801
  onUnmounted(() => {
11805
11802
  if (timer) clearTimeout(timer);
11806
11803
  });
@@ -11989,7 +11986,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11989
11986
  };
11990
11987
  }
11991
11988
  });
11992
- const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-916732fc"]]);
11989
+ const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-3c20080e"]]);
11993
11990
  const inputNumberModel = {
11994
11991
  modelValue: {
11995
11992
  type: Number,
@@ -12621,6 +12618,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12621
12618
  }),
12622
12619
  emits: /* @__PURE__ */ mergeModels(["close", "change"], ["update:modelValue"]),
12623
12620
  setup(__props2, { emit: __emit2 }) {
12621
+ var _a;
12622
+ const app2 = (_a = getCurrentInstance()) == null ? void 0 : _a.appContext.app;
12623
+ if (app2 && !app2.directive("tooltip")) {
12624
+ app2.use(LewMessage$1);
12625
+ }
12624
12626
  const emit2 = __emit2;
12625
12627
  const props2 = __props2;
12626
12628
  const modelValue2 = useModel(__props2, "modelValue");
@@ -12655,6 +12657,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12655
12657
  } else {
12656
12658
  if (!(modelValue2.value || []).includes(inputValue.value)) {
12657
12659
  addTag();
12660
+ } else {
12661
+ LewMessage$1.warning("不允许重复标签");
12658
12662
  }
12659
12663
  }
12660
12664
  if (isEnter) {
@@ -12742,6 +12746,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12742
12746
  size: _ctx.size,
12743
12747
  readonly: !unref(isFocus),
12744
12748
  placeholder: (modelValue2.value || []).length > 0 ? "" : _ctx.placeholder,
12749
+ "ok-by-enter": "",
12745
12750
  onBlur: blurFn
12746
12751
  }, null, 8, ["auto-width", "modelValue", "size", "readonly", "placeholder"])) : createCommentVNode("", true)
12747
12752
  ]),
@@ -12768,7 +12773,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12768
12773
  };
12769
12774
  }
12770
12775
  });
12771
- const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-a8a450e2"]]);
12776
+ const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-88c45751"]]);
12772
12777
  const checkboxModel = {
12773
12778
  modelValue: {
12774
12779
  type: Boolean,