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.
- package/category-search/index.es.js +13 -11
- package/category-search/index.umd.js +10 -10
- package/package.json +1 -1
- package/pagination/index.es.js +1 -2
- package/pagination/index.umd.js +9 -9
- package/select/index.es.js +1 -2
- package/select/index.umd.js +10 -10
- package/tag/index.es.js +1 -2
- package/tag/index.umd.js +1 -1
- package/time-select/index.es.js +1 -2
- package/time-select/index.umd.js +16 -16
- package/vue-devui.es.js +14 -12
- package/vue-devui.umd.js +2 -2
|
@@ -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":
|
|
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:
|
|
10443
|
+
text: props.tag.value.value
|
|
10447
10444
|
});
|
|
10448
10445
|
const onConfirmClick = () => {
|
|
10449
|
-
|
|
10450
|
-
|
|
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":
|
|
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":
|
|
10469
|
-
"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"
|