style: 修复number组件单位换行问题 (#9333)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2024-01-05 15:14:21 +08:00 committed by GitHub
parent 78395d5e97
commit 5373f2377d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,7 +313,7 @@
}
.#{$ns}NumberControl--withUnit {
display: flex;
display: flex !important;
&:hover {
.#{$ns}Number,
@ -366,11 +366,14 @@
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
background-color: var(--inputNumber-base-unit-bg-color);
min-width: var(--inputNumber-base-default-unit-width);
min-width: var(--inputNumber-base-default-unit-width) !important;
padding: var(--inputNumber-base-default-unit-paddingTop)
var(--inputNumber-base-default-unit-paddingRight)
var(--inputNumber-base-default-unit-paddingBottom)
var(--inputNumber-base-default-unit-paddingLeft);
.#{$ns}Select-valueWrap {
width: auto !important;
}
}
.#{$ns}NumberControl-single-unit {
cursor: default;