From 5d8706040a328c007734ad4916b034d71696eaab Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 24 四月 2024 15:09:14 +0800 Subject: [PATCH] 2024-04-24 --- src/tabviews/custom/components/tree/antd-tree/index.scss | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 45 insertions(+), 8 deletions(-) diff --git a/src/tabviews/custom/components/tree/antd-tree/index.scss b/src/tabviews/custom/components/tree/antd-tree/index.scss index eb5df34..d3b8fb0 100644 --- a/src/tabviews/custom/components/tree/antd-tree/index.scss +++ b/src/tabviews/custom/components/tree/antd-tree/index.scss @@ -5,6 +5,7 @@ background-repeat: no-repeat; background-size: cover; min-height: 50px; + --mk-tree-line-height: 24px; .tree-header { position: relative; @@ -44,6 +45,39 @@ } } } + .ant-tree-title { + .button-list.toolbar-button { + position: absolute; + right: 0px; + top: 0px; + padding: 0px; + min-height: 24px; + height: var(--mk-tree-line-height); + + button { + min-width: 20px; + margin-bottom: 0px !important; + min-height: 24px; + border-width: 0px; + vertical-align: middle; + } + } + } + .ant-tree-node-content-wrapper { + .button-list.toolbar-button { + opacity: 0; + transition: all 0.3s; + } + } + .ant-tree-node-content-wrapper:hover { + .button-list.toolbar-button { + opacity: 1; + } + } + .ant-tree li .ant-tree-node-content-wrapper, .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle { + height: var(--mk-tree-line-height); + line-height: var(--mk-tree-line-height); + } .tree-box { overflow: auto; padding-bottom: 10px; @@ -61,6 +95,8 @@ right: 0px; padding: 5px 10px; color: var(--mk-sys-color); + height: var(--mk-tree-line-height); + line-height: var(--mk-tree-line-height); } } } @@ -117,21 +153,22 @@ .mk-tree-dropdown-wrap { box-shadow: 0 0 2px #bcbcbc; background: #ffffff; - min-width: 85px; + min-width: 100px; .button-list.toolbar-button { padding: 0px; + min-height: 36px; button { display: block; margin: 0!important; width: 100%; border-radius: 0px; - padding-left: 15px!important; - .anticon { - display: none; - } - .anticon + span { - margin-left: 0px; - } + border: 0px !important; + color: rgba(0, 0, 0, 0.85)!important; + background: transparent !important; + min-height: 36px; + } + button:not(:last-child) { + border-bottom: 1px solid #d8d8d8 !important; } } } -- Gitblit v1.8.0