From c01a4fcc99ca0f02fda38255f1c5398b122ef192 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 7 Nov 2024 16:09:02 +0800 Subject: [PATCH] feat: updated dependencies --- .../core/dependency/DependencyVersions.vue | 1 - src/components/core/node/NodeTag.vue | 5 +-- src/components/ui/tag/Tag.vue | 35 ++++++++++++------- .../dependency/list/useDependencyList.tsx | 7 ++-- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/components/core/dependency/DependencyVersions.vue b/src/components/core/dependency/DependencyVersions.vue index 6de9e406cd94f..f9a974a0d1fec 100644 --- a/src/components/core/dependency/DependencyVersions.vue +++ b/src/components/core/dependency/DependencyVersions.vue @@ -70,7 +70,6 @@ const versions = computed(() => { const versions = new Set(); repo.dependencies?.forEach(dep => { if (!dep.version) return; - console.debug(dep.version); versions.add(dep.version); }); return versions; diff --git a/src/components/core/node/NodeTag.vue b/src/components/core/node/NodeTag.vue index 7e8864ee7b911..a595d26dc59bf 100644 --- a/src/components/core/node/NodeTag.vue +++ b/src/components/core/node/NodeTag.vue @@ -2,7 +2,6 @@ import { computed } from 'vue'; import { NODE_STATUS_OFFLINE, NODE_STATUS_ONLINE } from '@/constants'; import { translate } from '@/utils'; -import { ElTag } from 'element-plus'; const t = translate; @@ -14,6 +13,7 @@ const props = defineProps<{ clickable?: boolean; loading?: boolean; effect?: BasicEffect; + hit?: boolean; iconOnly?: boolean; }>(); @@ -75,8 +75,9 @@ defineOptions({ name: 'ClNodeTag' }); :tooltip="tooltip" :clickable="clickable" :effect="effect" + :hit="hit" + max-width="150px" short - short-width="100px" @click="emit('click')" @mouseenter="emit('mouseenter')" @mouseleave="emit('mouseleave')" diff --git a/src/components/ui/tag/Tag.vue b/src/components/ui/tag/Tag.vue index 7c8fb44f4b7d0..c440dd64a9742 100644 --- a/src/components/ui/tag/Tag.vue +++ b/src/components/ui/tag/Tag.vue @@ -1,5 +1,5 @@