fix: select check & remove icon align (#42513)

This commit is contained in:
二货爱吃白萝卜 2023-05-22 11:13:38 +08:00 committed by GitHub
parent 2ff5feb1bd
commit 2f9a8c7dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs';
import type { SelectToken } from '.';
import { resetComponent, textEllipsis } from '../../style';
import {
initMoveMotion,
initSlideMotion,
@ -9,7 +10,6 @@ import {
slideUpOut,
} from '../../style/motion';
import type { GenerateStyle } from '../../theme/internal';
import { resetComponent, textEllipsis } from '../../style';
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = (token) => {
const { controlPaddingHorizontal } = token;
@ -112,6 +112,8 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
'&-state': {
flex: 'none',
display: 'flex',
alignItems: 'center',
},
[`&-active:not(${selectItemCls}-option-disabled)`]: {

View File

@ -120,7 +120,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
'&-remove': {
...resetIcon(),
display: 'inline-block',
display: 'inline-flex',
alignItems: 'center',
color: token.colorIcon,
fontWeight: 'bold',
fontSize: 10,