fix: 统一资源卡片底部操作布局

- 将可见操作紧凑靠左并固定更多菜单位置

- 统一工作流、知识库、智能体和插件卡片密度

- 补充无占位布局回归测试
This commit is contained in:
2026-08-07 12:41:50 +08:00
parent 7a64cfcaa4
commit 4b52d85512
7 changed files with 193 additions and 107 deletions

View File

@@ -358,6 +358,8 @@ async function handleDeleteAction(row: AgentInfo) {
:data="pageList"
:primary-action="primaryAction"
:actions="actions"
density="compact"
meta-layout="compact"
>
<template #details="{ item }">
<AiResourceCornerMeta>

View File

@@ -730,7 +730,6 @@ function changeCategory(category: any) {
tag-field="collectionType"
tag-placement="details"
:tag-map="collectionTypeLabelMap"
:title-line-clamp="0"
>
<template #details="{ item }">
<AiResourceCornerMeta>

View File

@@ -124,7 +124,7 @@ const actions: ActionButton[] = [
text: $t('button.delete'),
tone: 'danger',
permission: '/api/v1/plugin/remove',
placement: 'inline',
placement: 'menu',
onClick(item) {
handleDelete(item);
},
@@ -382,6 +382,8 @@ const handleClickCategory = (item: PluginCategory) => {
:primary-action="primaryAction"
:actions="actions"
:default-icon="defaultPluginIcon"
density="compact"
meta-layout="compact"
>
<template #corner="{ item }">
<ElTag

View File

@@ -1245,7 +1245,6 @@ function handleHeaderButtonClick(data: any) {
:actions="actions"
density="compact"
meta-layout="compact"
:title-line-clamp="0"
>
<template #details="{ item }">
<AiResourceCornerMeta>