perf: optimize multiple select options style (#46646)

This commit is contained in:
MadCcc 2023-12-27 15:12:32 +08:00 committed by GitHub
parent ae38f1e3eb
commit b49fb85c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,16 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
[`${selectItemCls}-option-state`]: {
color: token.colorPrimary,
},
[`&:has(+ ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled))`]: {
borderEndStartRadius: 0,
borderEndEndRadius: 0,
[`& + ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled)`]: {
borderStartStartRadius: 0,
borderStartEndRadius: 0,
},
},
},
'&-disabled': {
[`&${selectItemCls}-option-selected`]: {