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() {