fix(tree-menu): adjusting the input box of the tree menu component can clear the symbol position (#3561)

This commit is contained in:
wuyiping 2025-07-09 01:56:08 -07:00 committed by GitHub
parent c5d04e7b2f
commit 6801abcafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -157,6 +157,9 @@
border-top: 1px solid var(--tv-TreeMenu-border-top-color);
margin-right: var(--tv-TreeMenu-input-before-margin-right);
}
.@{input-prefix-cls}__suffix {
right: var(--tv-TreeMenu-input-suffix-right);
}
}
.@{tree-prefix-cls} {

View File

@ -41,8 +41,10 @@
--tv-TreeMenu-collapse-icon-margin-right: 20px;
// 输入框下面的线
--tv-TreeMenu-border-top-color: var(--tv-color-border-divider, #f0f0f0);
//输入框距离边的距离
//输入框距离边的距离
--tv-TreeMenu-input-padding-right: var(--tv-space-xxxl, 32px);
//输入框X号距离右边的距离
--tv-TreeMenu-input-suffix-right: calc(var(--tv-space-base, 4px) * 11);
//选中后左边宽度
--tv-TreeMenu-node-content-height: var(--tv-space-xxxl, 32px);
//输入框底下的线的定位top