fix: hide arrow for last item in vertical Steps (#44582)

This commit is contained in:
cnjs 2023-09-02 00:11:52 +08:00 committed by GitHub
parent 9258dea59e
commit 7198497077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,13 @@ const genStepsNavStyle: GenerateStyle<StepsToken, CSSObject> = (token) => {
textAlign: 'center',
transform: 'translateY(-50%) translateX(-50%) rotate(135deg)',
},
'&:last-child': {
'&::after': {
display: 'none',
},
},
[`> ${componentCls}-item-container > ${componentCls}-item-tail`]: {
visibility: 'hidden',
},