vue-devui 1.4.1 → 1.5.1
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/README.md +10 -7
- package/collapse/style.css +1 -1
- package/editable-select/index.es.js +5412 -184
- package/editable-select/index.umd.js +27 -1
- package/image-preview/index.es.js +2 -0
- package/image-preview/index.umd.js +1 -1
- package/menu/index.es.js +7 -7
- package/menu/index.umd.js +1 -1
- package/package.json +2 -1
- package/pagination/index.es.js +8 -8
- package/pagination/index.umd.js +11 -11
- package/select/index.es.js +8 -8
- package/select/index.umd.js +12 -12
- package/style.css +1 -1
- package/tag/index.es.js +8 -8
- package/tag/index.umd.js +1 -1
- package/time-select/index.es.js +8 -8
- package/time-select/index.umd.js +5 -5
- package/vue-devui.es.js +144 -326
- package/vue-devui.umd.js +11 -11
package/select/index.es.js
CHANGED
|
@@ -8822,18 +8822,18 @@ var Tag = defineComponent({
|
|
|
8822
8822
|
e.stopPropagation();
|
|
8823
8823
|
emit("tagDelete", e);
|
|
8824
8824
|
};
|
|
8825
|
+
const contentColor = computed(() => {
|
|
8826
|
+
return isDefaultTag() ? "" : checked.value ? "#fff" : themeColor.value;
|
|
8827
|
+
});
|
|
8825
8828
|
const closeIconEl = () => {
|
|
8829
|
+
const iconName = isDefaultTag() ? "error-o" : "close";
|
|
8826
8830
|
return deletable.value ? createVNode("a", {
|
|
8827
8831
|
"class": "remove-button",
|
|
8828
8832
|
"onClick": handleDelete
|
|
8829
|
-
}, [
|
|
8830
|
-
"size": "12px",
|
|
8831
|
-
"name": "error-o",
|
|
8832
|
-
"color": "#adb0b8"
|
|
8833
|
-
}, null) : createVNode(resolveComponent("d-icon"), {
|
|
8833
|
+
}, [createVNode(resolveComponent("d-icon"), {
|
|
8834
8834
|
"size": "12px",
|
|
8835
|
-
"name":
|
|
8836
|
-
"color":
|
|
8835
|
+
"name": iconName,
|
|
8836
|
+
"color": contentColor.value
|
|
8837
8837
|
}, null)]) : null;
|
|
8838
8838
|
};
|
|
8839
8839
|
const unWatch = watch(checked, (newVal) => {
|
|
@@ -8849,7 +8849,7 @@ var Tag = defineComponent({
|
|
|
8849
8849
|
"class": tagClass.value,
|
|
8850
8850
|
"style": {
|
|
8851
8851
|
display: "block",
|
|
8852
|
-
color:
|
|
8852
|
+
color: contentColor.value,
|
|
8853
8853
|
backgroundColor: checked.value ? themeColor.value : !color.value ? "" : "var(--devui-base-bg, #ffffff)"
|
|
8854
8854
|
},
|
|
8855
8855
|
"title": tagTitle
|