From e33444368e39d7ee0e5311d929a4e1cb1b8b46e4 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sun, 11 Jan 2026 16:14:04 +0800 Subject: [PATCH] fix(Steps): rm typo progress11 (#56565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Steps): fix typo progress11 => progress * fix: update --------- Co-authored-by: 遇见同学 <1875694521@qq.com> --- components/steps/style/progress.ts | 53 +----------------------------- 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/components/steps/style/progress.ts b/components/steps/style/progress.ts index b3ea1de579..cfba338025 100644 --- a/components/steps/style/progress.ts +++ b/components/steps/style/progress.ts @@ -1,31 +1,16 @@ import type { CSSObject } from '@ant-design/cssinjs'; -import { unit } from '@ant-design/cssinjs'; import type { StepsToken } from '.'; import type { GenerateStyle } from '../../theme/internal'; import { genCssVar } from '../../theme/util/genStyleUtils'; const genStepsProgressStyle: GenerateStyle = (token) => { - const { - calc, - antCls, - componentCls, - iconSize, - iconSizeSM, - lineWidth, - lineWidthBold, - paddingXXS, - motionDurationSlow, - } = token; + const { calc, antCls, componentCls, lineWidthBold, motionDurationSlow } = token; const itemCls = `${componentCls}-item`; const [varName, varRef] = genCssVar(antCls, '_steps_'); // TODO: change `_steps_` to `steps` - const progressSize = calc(iconSize).add(calc(lineWidthBold).mul(4).equal()).equal(); - - const progressSizeSM = calc(iconSizeSM).add(calc(lineWidth).mul(4).equal()).equal(); - const enhanceSize = calc(lineWidthBold).add(lineWidthBold).equal(); return { @@ -75,42 +60,6 @@ const genStepsProgressStyle: GenerateStyle = (token) => { }, }, }, - - [`&${componentCls}-with-progress11`]: { - // ========================================================== - // == Shared == - // ========================================================== - [itemCls]: { - paddingTop: paddingXXS, - paddingInlineStart: paddingXXS, - }, - - [`${itemCls}-icon`]: { - position: 'relative', - - [`${antCls}-progress`]: { - position: 'absolute', - left: { - _skip_check_: true, - value: '50%', - }, - top: '50%', - transform: 'translate(-50%, -50%)', - - '&-body': { - width: `${unit(progressSize)} !important`, - height: `${unit(progressSize)} !important`, - }, - }, - }, - - [`&${componentCls}-small`]: { - [`${itemCls}-icon ${antCls}-progress-body`]: { - width: `${unit(progressSizeSM)} !important`, - height: `${unit(progressSizeSM)} !important`, - }, - }, - }, }; };