This commit is contained in:
yuding
2025-12-22 14:31:23 +08:00
parent 9d1ebfd817
commit 005535a26d
14 changed files with 548 additions and 401 deletions

View File

@@ -9,11 +9,12 @@
color: var(--bim-ui_text_primary, #333);
user-select: none; /* 防止双击选中文字 */
position: relative; /* 为下拉框定位 */
background: transparent; /* 保持透明背景 */
}
/* 搜索区域 */
.bim-tree-search {
padding: 8px;
padding: 6px;
/* border-bottom: 1px solid var(--bim-ui_border_color, #d9d9d9); */
/* 背景透明,使用父布局背景 */
background-color: transparent;
@@ -47,7 +48,7 @@
.bim-tree-search-input {
width: 100%;
height: 32px;
height: 30px;
/* 左侧留出图标位置: 8px left + 16px icon + 4px gap = 28px */
padding: 4px 8px 4px 30px;
border: 1px solid var(--bim-ui_border_color, #d9d9d9);
@@ -116,7 +117,8 @@
.bim-tree-content {
flex: 1;
overflow-y: auto;
padding: 4px 0;
padding: 2px 0;
min-height: 0; /* 允许在父容器中正确滚动 */
}
/* 节点行容器 */
@@ -137,7 +139,7 @@
}
.bim-tree-node-content:hover {
background-color: var(--bim-ui_bg_hover, rgba(0, 0, 0, 0.05));
background-color: var(--bim-ui_bg_hover, rgba(0, 0, 0, 0.05)); /* 由主题提供,深色模式一致 */
}
/* 展开/折叠箭头 */
@@ -295,7 +297,8 @@
.bim-tree-content {
flex: 1;
overflow: auto; /* 支持横向和纵向滚动 */
padding: 4px 0;
padding: 2px 0;
min-height: 0;
}
/* 节点行容器 */