From 7468bfd43fa003f884ae83212fc4e0518e12dcbc Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 11 Nov 2025 15:53:54 +0800 Subject: [PATCH] feat: The dividing line in the directory section can be dragged and dropped --- ui/src/components/layout-container/index.vue | 86 +++++++++++++++++--- ui/src/views/application/index.vue | 2 +- ui/src/views/knowledge/index.vue | 2 +- ui/src/views/tool/index.vue | 2 +- 4 files changed, 77 insertions(+), 15 deletions(-) diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue index f02ff8729..8a791b96e 100644 --- a/ui/src/components/layout-container/index.vue +++ b/ui/src/components/layout-container/index.vue @@ -1,6 +1,9 @@ @@ -47,17 +92,34 @@ const showBack = computed(() => { &__left { position: relative; box-sizing: border-box; - transition: width 0.28s; + // transition: width 0.28s; width: var(--sidebar-width); - min-width: var(--sidebar-width); - box-sizing: border-box; + .splitter-bar-line { + z-index: 1; + position: absolute; + top: 0; + right: 0; + cursor: col-resize; + width: 4px; + height: 100%; + &.hover:after { + width: 1px; + height: 100%; + content: ''; + z-index: 2; + position: absolute; + right: -1px; + top: 0; + background: var(--el-color-primary); + } + } .collapse { position: absolute; top: 36px; right: -12px; box-shadow: 0px 5px 10px 0px var(--app-text-color-light-1); - z-index: 1; + z-index: 2; } .layout-container__left_content { diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index c81c5f26e..1e43f7db9 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -1,5 +1,5 @@