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 cssVarsRef = computed(() => {
const { value: size } = mergedSizeRef const { value: size } = mergedSizeRef
const { const {
common: { cubicBezierEaseInOut, fontWeight }, common: { cubicBezierEaseInOut },
self: { self: {
color, color,
borderRadius, borderRadius,
@ -949,6 +949,7 @@ export default defineComponent({
loadingColor, loadingColor,
loadingColorError, loadingColorError,
loadingColorWarning, loadingColorWarning,
fontWeight,
[createKey('padding', size)]: padding, [createKey('padding', size)]: padding,
[createKey('fontSize', size)]: fontSize, [createKey('fontSize', size)]: fontSize,
[createKey('height', size)]: height [createKey('height', size)]: height

View File

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

View File

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