fix(steps): fix the line style in vertical state

This commit is contained in:
wuxh 2022-11-30 13:53:23 +08:00
parent 7a9ef61708
commit 8abeac7643
No known key found for this signature in database
GPG Key ID: 464F03149513C20C

View File

@ -20,10 +20,16 @@ const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = (token) => {
paddingInlineStart: token.paddingXXS, paddingInlineStart: token.paddingXXS,
[`> ${componentCls}-item-container > ${componentCls}-item-tail`]: { [`> ${componentCls}-item-container > ${componentCls}-item-tail`]: {
top: token.marginXXS, top: token.marginXXS,
insetInlineStart: token.stepsIconSize / 2 - token.lineWidth + token.paddingXXS,
}, },
}, },
[`&, &${componentCls}-small`]: { [`&${componentCls}-small`]: {
[`&${componentCls}-vertical > ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]:
{
insetInlineStart: token.stepsSmallIconSize / 2 - token.lineWidth + token.paddingXXS,
},
[`&${componentCls}-horizontal ${componentCls}-item:first-child`]: { [`&${componentCls}-horizontal ${componentCls}-item:first-child`]: {
paddingBottom: token.paddingXXS, paddingBottom: token.paddingXXS,
paddingInlineStart: token.paddingXXS, paddingInlineStart: token.paddingXXS,