refactor(input): change font weight variable source to self

This commit is contained in:
07akioni 2024-10-07 16:55:24 +08:00
parent 972638bd73
commit 9a23d7eed4
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -37,10 +37,12 @@ const inputDark: InputTheme = {
iconColor,
iconColorDisabled,
iconColorHover,
iconColorPressed
iconColorPressed,
fontWeight
} = vars
return {
...commonVariables,
fontWeight,
countTextColorDisabled: textColorDisabled,
countTextColor: textColor3,
heightTiny,

View File

@ -37,10 +37,12 @@ function self(vars: ThemeCommonVars) {
iconColor,
iconColorDisabled,
iconColorHover,
iconColorPressed
iconColorPressed,
fontWeight
} = vars
return {
...commonVariables,
fontWeight,
countTextColorDisabled: textColorDisabled,
countTextColor: textColor3,
heightTiny,