From 49697b2c87260ab50e7bfe5ced4a88923c17ab8b Mon Sep 17 00:00:00 2001 From: lijiahang Date: Thu, 14 Dec 2023 19:17:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BB=E6=9C=BA=E5=88=86=E7=BB=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/assets/style/arco-extends.less | 25 +++-- orion-ops-ui/src/assets/style/global.less | 2 +- .../asset/grant/components/host-list.vue | 2 +- .../components/group/host-group-drawer.vue | 1 - .../terminal/assets/styles/layout.less | 5 +- .../components/layout/terminal-header.vue | 16 +-- .../new-connection/host-group-view.vue | 106 ++++++++++++++++++ .../new-connection/new-connection-view.vue | 99 +++++++++++----- .../host-ops/terminal/types/terminal.const.ts | 33 ++++-- 9 files changed, 232 insertions(+), 57 deletions(-) create mode 100644 orion-ops-ui/src/views/host-ops/terminal/components/new-connection/host-group-view.vue diff --git a/orion-ops-ui/src/assets/style/arco-extends.less b/orion-ops-ui/src/assets/style/arco-extends.less index 5750af30..c7ccf68d 100644 --- a/orion-ops-ui/src/assets/style/arco-extends.less +++ b/orion-ops-ui/src/assets/style/arco-extends.less @@ -38,7 +38,7 @@ // 垂直滚动 .arco-scrollbar-track-direction-vertical { - width: 9px; + width: 6px; .arco-scrollbar-thumb-bar { margin: 0; @@ -47,7 +47,7 @@ // 水平滚动 .arco-scrollbar-track-direction-horizontal { - height: 9px; + height: 6px; .arco-scrollbar-thumb-bar { margin: 0; @@ -81,31 +81,42 @@ // 块状树 .block-tree { + @tree-node-hover-color: var(--color-fill-1); + @tree-node-selected-color: var(--color-fill-2); + @tree-node-selected-hover-color: var(--color-fill-2); + .arco-tree-node { cursor: unset; + margin-bottom: 2px; &-switcher { margin-left: 8px; } &:hover { - background-color: var(--color-fill-1); + background-color: @tree-node-hover-color; } &-selected { - background-color: var(--color-fill-2); + background-color: @tree-node-selected-color; &:hover { - background-color: var(--color-fill-1); + background-color: @tree-node-selected-hover-color; } } + &-selected .arco-tree-node-title:hover { + background-color: unset; + //background-color: @tree-node-selected-hover-color; + } + &-title { - padding: 0; + padding: 0 16px 0 0; height: 32px; &:hover { - background-color: var(--color-fill-1); + background-color: unset; + //background-color: @tree-node-hover-color; } &-text { diff --git a/orion-ops-ui/src/assets/style/global.less b/orion-ops-ui/src/assets/style/global.less index b70e1436..1f39c853 100644 --- a/orion-ops-ui/src/assets/style/global.less +++ b/orion-ops-ui/src/assets/style/global.less @@ -213,7 +213,7 @@ body { ::-webkit-scrollbar { -webkit-appearance: none; width: 6px; - height: 4px; + height: 6px; } ::-webkit-scrollbar-track { diff --git a/orion-ops-ui/src/views/asset/grant/components/host-list.vue b/orion-ops-ui/src/views/asset/grant/components/host-list.vue index 328f83fe..e63f56bb 100644 --- a/orion-ops-ui/src/views/asset/grant/components/host-list.vue +++ b/orion-ops-ui/src/views/asset/grant/components/host-list.vue @@ -15,7 +15,7 @@