fix: datePicker arrow out of bound (#47389)

* fix: datePicker arrow out of bound

* chore: use logic prop
This commit is contained in:
二货爱吃白萝卜 2024-02-07 20:29:24 +08:00 committed by GitHub
parent 3d1c81db92
commit 52fdbb47d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -364,9 +364,14 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
position: 'absolute',
zIndex: 1,
display: 'none',
marginInlineStart: token.calc(paddingInline).mul(1.5).equal(),
paddingInline: token.calc(paddingInline).mul(1.5).equal(),
boxSizing: 'content-box',
transition: `left ${motionDurationSlow} ease-out`,
...genRoundedArrow(token, colorBgElevated, boxShadowPopoverArrow),
'&:before': {
insetInlineStart: token.calc(paddingInline).mul(1.5).equal(),
},
},
[`${componentCls}-panel-container`]: {

View File

@ -143,7 +143,7 @@
"rc-motion": "^2.9.0",
"rc-notification": "~5.3.0",
"rc-pagination": "~4.0.4",
"rc-picker": "~4.0.0-alpha.44",
"rc-picker": "~4.1.1",
"rc-progress": "~3.5.1",
"rc-rate": "~2.12.0",
"rc-resize-observer": "^1.4.0",