style: 样式调整

This commit is contained in:
rd
2025-09-05 10:57:15 +08:00
parent 72dabf9a9e
commit 8ffcb8c7a6

View File

@ -1,18 +1,27 @@
.ant-select { .ant-select {
.ant-select-selector { .ant-select-selector {
padding: 0 12px !important; padding: 0 12px !important;
height: 32px; border-radius: 4px !important;
color: var(--Text-4, #211f24); border-color: #d7d7d9 !important;
background-color: #fff !important;
align-items: center;
.ant-select-selection-search-input {
height: 100% !important;
}
.ant-select-selection-placeholder {
color: var(--Text-4, #737478);
font-family: $font-family-regular; font-family: $font-family-regular;
font-size: 14px; font-size: 14px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 22px; line-height: 22px;
border-radius: 4px !important; }
border-color: #d7d7d9 !important; .ant-select-selection-item {
background-color: #fff !important; color: var(--Text-4, #211f24);
&::placeholder { font-family: $font-family-regular;
color: var(--Text-4, #939499); font-size: 14px;
font-style: normal;
font-weight: 400;
} }
} }
&:focus, &:focus,
@ -23,17 +32,38 @@
box-shadow: 0 0 0 0 var(--color-primary-light-2) !important; box-shadow: 0 0 0 0 var(--color-primary-light-2) !important;
} }
} }
&.ant-select-lg {
.ant-select-selector {
height: 36px;
}
}
&.ant-select-sm {
.ant-select-selector {
height: 28px;
}
}
&.ant-select-status-error { &.ant-select-status-error {
border-color: $color-error !important; border-color: $color-error !important;
} }
} }
.ant-select.ant-select-single {
.ant-select-selector {
height: 32px !important;
}
&.ant-select-lg {
.ant-select-selector {
height: 36px !important;
}
}
&.ant-select-sm {
.ant-select-selector {
height: 28px !important;
}
}
}
.ant-select.ant-select-multiple {
.ant-select-selection-search-input {
min-height: 32px !important;
}
&.ant-select-lg {
.ant-select-selection-search-input {
min-height: 36px !important;
}
}
&.ant-select-sm {
.ant-select-selection-search-input {
min-height: 28px !important;
}
}
}