From 836f5608e00f5d8f55881a40396d01ed815e7c08 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 2 Nov 2025 16:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96pagetype=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/core/pagetype/GenericListPage.vue | 12 +++++++++++ .../core/pagetype/GenericListPageActions.vue | 17 +++------------- .../local_ai_agent_list_actions.vue | 20 +++---------------- .../local_ai_node_list_actions.vue | 20 +++---------------- 4 files changed, 21 insertions(+), 48 deletions(-) diff --git a/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue b/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue index 9ec5a8f..f8035fb 100644 --- a/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue +++ b/apps/jingrow/frontend/src/core/pagetype/GenericListPage.vue @@ -1455,6 +1455,18 @@ function formatDisplayValue(value: any, fieldName: string) { /* 工具栏容器样式(保留用于布局) */ .header-right { display: flex; align-items: center; gap: 12px; } +/* 卡片视图操作按钮容器样式(为自定义操作组件提供 footer 样式) */ +.card-actions { + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + padding: 8px 16px; + border-top: 1px solid #f3f4f6; + background: #fafbfc; + margin-top: auto; +} + /* 表格操作列样式 - 与 AgentList 完全一致 */ .col-actions { display: flex; diff --git a/apps/jingrow/frontend/src/core/pagetype/GenericListPageActions.vue b/apps/jingrow/frontend/src/core/pagetype/GenericListPageActions.vue index ed236fa..ee5dd0c 100644 --- a/apps/jingrow/frontend/src/core/pagetype/GenericListPageActions.vue +++ b/apps/jingrow/frontend/src/core/pagetype/GenericListPageActions.vue @@ -33,8 +33,9 @@ const props = defineProps() const emit = defineEmits() // 根据视图模式决定容器类名 +// 注意:卡片视图时父元素已经提供了 card-actions 容器和样式,所以只使用 col-actions const containerClass = computed(() => { - return props.viewMode === 'card' ? 'card-actions' : 'col-actions' + return 'col-actions' }) function handleView() { @@ -51,19 +52,7 @@ function handleDelete() {