mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat(组件): 添加应用商店过滤功能并优化来源标识显示
在AppGrid组件中添加storeFilter属性以支持应用商店过滤 重构AppCard组件的来源标识显示逻辑,新增合并标识显示 当storeFilter为'both'时显示合并标识,否则显示单独标识
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
v-for="(app, index) in apps"
|
||||
:key="index"
|
||||
:app="app"
|
||||
:show-origin="storeFilter === 'both'"
|
||||
@open-detail="$emit('open-detail', app)"
|
||||
/>
|
||||
</div>
|
||||
@@ -58,6 +59,7 @@ import type { App } from "../global/typedefinition";
|
||||
defineProps<{
|
||||
apps: App[];
|
||||
loading: boolean;
|
||||
storeFilter?: "spark" | "apm" | "both";
|
||||
}>();
|
||||
|
||||
defineEmits<{
|
||||
|
||||
Reference in New Issue
Block a user