From ec49b0a17e4b9e21bf87b02ead010c38336f40ee Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 06 十一月 2024 00:43:50 +0800 Subject: [PATCH] 不良下线更新 --- src/components/Tree/style/index.less | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/Tree/style/index.less b/src/components/Tree/style/index.less index 472d4ca..bd6f7bd 100644 --- a/src/components/Tree/style/index.less +++ b/src/components/Tree/style/index.less @@ -3,13 +3,21 @@ .@{tree-prefix-cls} { background-color: @component-background; + .ant-tree { + .ant-tree-checkbox { + margin-block-start: 0; + margin-inline: 4px 4px; + + & + span { + padding-left: 4px; + } + } + } + .ant-tree-node-content-wrapper { position: relative; .ant-tree-title { - position: absolute; - left: 0; - width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -17,8 +25,8 @@ } &__title { - position: relative; display: flex; + position: relative; align-items: center; width: 100%; padding-right: 10px; @@ -35,15 +43,15 @@ } &__actions { + display: flex; position: absolute; //top: 2px; right: 3px; - display: flex; } &__action { - margin-left: 4px; visibility: hidden; + margin-left: 4px; } &-header { -- Gitblit v1.9.3