From 6c17051046ebdced7c92fd41dae0ddfb79273453 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Sat, 29 Nov 2025 13:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archivesManagement/archCatalogue.vue | 218 +++++++++++------- 1 file changed, 130 insertions(+), 88 deletions(-) diff --git a/src/views/archivesManagement/archCatalogue.vue b/src/views/archivesManagement/archCatalogue.vue index 048929f7..7289edaa 100644 --- a/src/views/archivesManagement/archCatalogue.vue +++ b/src/views/archivesManagement/archCatalogue.vue @@ -11,31 +11,32 @@ @node-click="nodeClick" > - {{ data.contentName }} - - - - - - - - - - - - + + {{ data.contentName }} + + + + + + + + + + + + @@ -95,7 +96,8 @@ - + @@ -113,7 +115,7 @@ @@ -656,31 +658,71 @@ export default { .full-height { height: 100%; } + .box { height: 800px; } + .el-scrollbar { height: 100%; } + .box .el-scrollbar__wrap { overflow: scroll; } + .icon-op { font-size: 16px; margin-left: 6px; color: #409EFF; cursor: pointer; } + .icon-op:hover { color: #66b1ff; } + .left-panel { border-right: 1px solid #e6e6e6; } + .right-panel { padding-left: 16px; } + .right-basic { height: 100%; } + +/* 确保整行可 hover */ +.tree-node-row { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + height: 100%; + padding: 4px 8px; /* 根据实际调整 */ + box-sizing: border-box; +} + +/* 默认隐藏操作图标 */ +.tree-node-row .node-actions .icon-op { + opacity: 0; + visibility: hidden; + transition: opacity 0.2s ease; + margin-left: 8px; +} + +/* 鼠标 hover 整行时显示 */ +.tree-node-row:hover .node-actions .icon-op { + opacity: 1; + visibility: visible; +} + +/* 可选:让操作区不占用布局空间(始终 reserve 位置) */ +.tree-node-row .node-actions { + display: flex; + align-items: center; + white-space: nowrap; +}