From 4f462c5cfd94ed110df21e246eb895bd4754517a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 29 Dec 2024 19:59:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(PluginAppCard,=20PluginCard):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8F=92=E4=BB=B6=E8=AF=A6=E6=83=85=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/PluginAppCard.vue | 74 ++++++++++++++++++++++---- src/components/cards/PluginCard.vue | 17 +++--- src/styles/styles.scss | 2 +- 3 files changed, 77 insertions(+), 16 deletions(-) diff --git a/src/components/cards/PluginAppCard.vue b/src/components/cards/PluginAppCard.vue index 22550530..63c50bf8 100644 --- a/src/components/cards/PluginAppCard.vue +++ b/src/components/cards/PluginAppCard.vue @@ -43,11 +43,8 @@ const imageLoadError = ref(false) // 更新日志弹窗 const releaseDialog = ref(false) -// 计算插件标签 -const pluginLabels = computed(() => { - if (!props.plugin?.plugin_label) return [] - return props.plugin.plugin_label.split(',') -}) +// 插件详情弹窗 +const detailDialog = ref(false) // 图片加载完成 async function imageLoaded() { @@ -76,7 +73,7 @@ async function installPlugin() { if (result.success) { $toast.success(`插件 ${props.plugin?.plugin_name} 安装成功!`) - + detailDialog.value = false // 通知父组件刷新 emit('install') } else { @@ -150,7 +147,7 @@ const dropdownItems = ref([ diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index c33cc2c9..64335a42 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -1,7 +1,6 @@