vue-devui 1.5.0 → 1.5.2

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.
@@ -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
- }, [isDefaultTag() ? createVNode(resolveComponent("d-icon"), {
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": "close",
8836
- "color": themeColor.value
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: checked.value ? "#fff" : themeColor.value,
8852
+ color: contentColor.value,
8853
8853
  backgroundColor: checked.value ? themeColor.value : !color.value ? "" : "var(--devui-base-bg, #ffffff)"
8854
8854
  },
8855
8855
  "title": tagTitle