vue-devui 1.6.36-alpha.1 → 1.6.36

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.
@@ -954,7 +954,6 @@ var Tag = defineComponent({
954
954
  } = toRefs(props);
955
955
  const tagClass = useClass(props);
956
956
  const themeColor = useColor(props);
957
- const tagTitle = titleContent.value || "";
958
957
  const isDefaultTag = () => !type4.value && !color.value;
959
958
  const handleClick = (e) => {
960
959
  emit("click", e);
@@ -993,7 +992,7 @@ var Tag = defineComponent({
993
992
  color: contentColor.value,
994
993
  backgroundColor: checked.value ? themeColor.value : !color.value ? "" : "var(--devui-base-bg, #ffffff)"
995
994
  },
996
- "title": tagTitle
995
+ "title": titleContent.value || ""
997
996
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots), closeIconEl()])]);
998
997
  };
999
998
  }
@@ -10436,37 +10435,40 @@ var TextInputMenu = defineComponent({
10436
10435
  props: typeMenuProps,
10437
10436
  emits: ["close"],
10438
10437
  setup(props, ctx) {
10439
- const {
10440
- tag: tag2
10441
- } = toRefs(props);
10438
+ const formEl = ref();
10442
10439
  const {
10443
10440
  getTextInputValue
10444
10441
  } = inject(categorySearchInjectionKey);
10445
10442
  const formData = reactive({
10446
- text: tag2.value.value.value
10443
+ text: props.tag.value.value
10447
10444
  });
10448
10445
  const onConfirmClick = () => {
10449
- getTextInputValue(tag2.value, formData.text);
10450
- ctx.emit("close");
10446
+ formEl.value.validate((isValid) => {
10447
+ if (isValid) {
10448
+ getTextInputValue(props.tag, formData.text);
10449
+ ctx.emit("close");
10450
+ }
10451
+ });
10451
10452
  };
10452
10453
  const onCancelClick = () => {
10453
10454
  ctx.emit("close");
10454
10455
  };
10455
10456
  return () => createVNode(resolveComponent("d-form"), {
10457
+ "ref": formEl,
10456
10458
  "data": formData,
10457
10459
  "pop-position": ["right"]
10458
10460
  }, {
10459
10461
  default: () => [createVNode(resolveComponent("d-form-item"), {
10460
10462
  "field": "text",
10461
- "rules": tag2.value.validateRules
10463
+ "rules": props.tag.validateRules
10462
10464
  }, {
10463
10465
  default: () => [createVNode(resolveComponent("d-input"), {
10464
10466
  "modelValue": formData.text,
10465
10467
  "onUpdate:modelValue": ($event) => formData.text = $event,
10466
10468
  "autocomplete": "off",
10467
10469
  "autofocus": true,
10468
- "maxlength": tag2.value.maxLength,
10469
- "placeholder": tag2.value.placeholder || ""
10470
+ "maxlength": props.tag.maxLength,
10471
+ "placeholder": props.tag.placeholder || ""
10470
10472
  }, null)]
10471
10473
  }), createVNode("div", {
10472
10474
  "class": "dp-dropdown-operation-area"