mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
🐞 fix: .ant-select-selector是content-box导致宽度不正常 (#36971)
* 🐞 fix: .ant-select-selector是content-box导致宽度不正常 * 🐞 fix: add resetComponent * 🐞 fix: genItemStyle add box-sizing:border-box
This commit is contained in:
parent
af6d58fb5b
commit
00f59d32f0
@ -25,6 +25,7 @@ const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => {
|
||||
fontWeight: 'normal',
|
||||
fontSize: token.fontSize,
|
||||
lineHeight: token.lineHeight,
|
||||
boxSizing: 'border-box',
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
|
||||
import { resetComponent } from '../../style';
|
||||
import type { SelectToken } from '.';
|
||||
import { mergeToken } from '../../theme';
|
||||
|
||||
@ -17,6 +18,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
|
||||
|
||||
// ========================= Selector =========================
|
||||
[`${componentCls}-selector`]: {
|
||||
...resetComponent(token),
|
||||
|
||||
display: 'flex',
|
||||
[`${componentCls}-selection-search`]: {
|
||||
position: 'absolute',
|
||||
|
Loading…
Reference in New Issue
Block a user