diff --git a/components/input-number/style/index.ts b/components/input-number/style/index.ts index 6ff1daf988..a2cc635e1a 100644 --- a/components/input-number/style/index.ts +++ b/components/input-number/style/index.ts @@ -55,8 +55,8 @@ const genInputNumberStyles: GenerateStyle = (token: InputNumbe colorTextDescription, motionDurationMid, colorPrimary, - controlHeight, inputPaddingHorizontal, + inputPaddingVertical, colorBgContainer, colorTextDisabled, borderRadiusSM, @@ -164,8 +164,7 @@ const genInputNumberStyles: GenerateStyle = (token: InputNumbe '&-input': { ...resetComponent(token), width: '100%', - height: controlHeight - 2 * lineWidth, - padding: `0 ${inputPaddingHorizontal}px`, + padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`, textAlign: 'start', backgroundColor: 'transparent', border: 0, @@ -320,6 +319,7 @@ const genInputNumberStyles: GenerateStyle = (token: InputNumbe const genAffixWrapperStyles: GenerateStyle = (token: InputNumberToken) => { const { componentCls, + inputPaddingVertical, inputPaddingHorizontal, inputAffixPadding, controlWidth, @@ -370,7 +370,7 @@ const genAffixWrapperStyles: GenerateStyle = (token: InputNumb }, [`input${componentCls}-input`]: { - padding: 0, + padding: `${inputPaddingVertical}px 0`, }, '&::before': {