From 50b49c1b760489c3430fc382656d57c5fbbab07c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 29 四月 2024 16:07:24 +0800 Subject: [PATCH] 2024-04-29 --- src/tabviews/custom/components/tree/antd-tree/index.scss | 54 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 46 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..84d2037 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; @@ -18,6 +19,7 @@ text-decoration: inherit; font-weight: inherit; font-style: inherit; + font-family: inherit; float: left; line-height: 45px; margin-left: 10px; @@ -44,6 +46,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 +96,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 +154,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