fix: 统一资源卡片底部操作布局
- 将可见操作紧凑靠左并固定更多菜单位置 - 统一工作流、知识库、智能体和插件卡片密度 - 补充无占位布局回归测试
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1245,7 +1245,6 @@ function handleHeaderButtonClick(data: any) {
|
||||
:actions="actions"
|
||||
density="compact"
|
||||
meta-layout="compact"
|
||||
:title-line-clamp="0"
|
||||
>
|
||||
<template #details="{ item }">
|
||||
<AiResourceCornerMeta>
|
||||
|
||||
Reference in New Issue
Block a user