diff --git a/src/input/src/Input.tsx b/src/input/src/Input.tsx index 36a353975..2b58b9887 100644 --- a/src/input/src/Input.tsx +++ b/src/input/src/Input.tsx @@ -904,7 +904,7 @@ export default defineComponent({ const cssVarsRef = computed(() => { const { value: size } = mergedSizeRef const { - common: { cubicBezierEaseInOut, fontWeight }, + common: { cubicBezierEaseInOut }, self: { color, borderRadius, @@ -949,6 +949,7 @@ export default defineComponent({ loadingColor, loadingColorError, loadingColorWarning, + fontWeight, [createKey('padding', size)]: padding, [createKey('fontSize', size)]: fontSize, [createKey('height', size)]: height diff --git a/src/input/styles/dark.ts b/src/input/styles/dark.ts index 6cd3683cf..d8c374b36 100644 --- a/src/input/styles/dark.ts +++ b/src/input/styles/dark.ts @@ -37,10 +37,12 @@ const inputDark: InputTheme = { iconColor, iconColorDisabled, iconColorHover, - iconColorPressed + iconColorPressed, + fontWeight } = vars return { ...commonVariables, + fontWeight, countTextColorDisabled: textColorDisabled, countTextColor: textColor3, heightTiny, diff --git a/src/input/styles/light.ts b/src/input/styles/light.ts index 8417e9543..3c022391a 100644 --- a/src/input/styles/light.ts +++ b/src/input/styles/light.ts @@ -37,10 +37,12 @@ function self(vars: ThemeCommonVars) { iconColor, iconColorDisabled, iconColorHover, - iconColorPressed + iconColorPressed, + fontWeight } = vars return { ...commonVariables, + fontWeight, countTextColorDisabled: textColorDisabled, countTextColor: textColor3, heightTiny,