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.
@@ -8823,18 +8823,18 @@ var Tag = defineComponent({
8823
8823
  e.stopPropagation();
8824
8824
  emit("tagDelete", e);
8825
8825
  };
8826
+ const contentColor = computed(() => {
8827
+ return isDefaultTag() ? "" : checked.value ? "#fff" : themeColor.value;
8828
+ });
8826
8829
  const closeIconEl = () => {
8830
+ const iconName = isDefaultTag() ? "error-o" : "close";
8827
8831
  return deletable.value ? createVNode("a", {
8828
8832
  "class": "remove-button",
8829
8833
  "onClick": handleDelete
8830
- }, [isDefaultTag() ? createVNode(resolveComponent("d-icon"), {
8831
- "size": "12px",
8832
- "name": "error-o",
8833
- "color": "#adb0b8"
8834
- }, null) : createVNode(resolveComponent("d-icon"), {
8834
+ }, [createVNode(resolveComponent("d-icon"), {
8835
8835
  "size": "12px",
8836
- "name": "close",
8837
- "color": themeColor.value
8836
+ "name": iconName,
8837
+ "color": contentColor.value
8838
8838
  }, null)]) : null;
8839
8839
  };
8840
8840
  const unWatch = watch(checked, (newVal) => {
@@ -8850,7 +8850,7 @@ var Tag = defineComponent({
8850
8850
  "class": tagClass.value,
8851
8851
  "style": {
8852
8852
  display: "block",
8853
- color: checked.value ? "#fff" : themeColor.value,
8853
+ color: contentColor.value,
8854
8854
  backgroundColor: checked.value ? themeColor.value : !color.value ? "" : "var(--devui-base-bg, #ffffff)"
8855
8855
  },
8856
8856
  "title": tagTitle