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([ - + - + {{ props.plugin?.plugin_name }} v{{ props.plugin?.plugin_version }} - + {{ props.plugin?.plugin_desc }} @@ -226,5 +223,64 @@ const dropdownItems = ref([ + + + + + + + + + + + + + + + + {{ props.plugin?.plugin_name }} + + + {{ props.plugin?.plugin_desc }} + + + + + 版本: + v{{ props.plugin?.plugin_version }} + + + + + 作者: + + {{ props.plugin?.plugin_author }} + + + + + + 安装到本地 + + 共 {{ props.count?.toLocaleString() }} 次下载 + + + + + + + + + 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 @@