mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-21 01:13:16 +08:00
refactor(input): change font weight variable source to self
This commit is contained in:
parent
972638bd73
commit
9a23d7eed4
@ -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
|
||||
|
@ -37,10 +37,12 @@ const inputDark: InputTheme = {
|
||||
iconColor,
|
||||
iconColorDisabled,
|
||||
iconColorHover,
|
||||
iconColorPressed
|
||||
iconColorPressed,
|
||||
fontWeight
|
||||
} = vars
|
||||
return {
|
||||
...commonVariables,
|
||||
fontWeight,
|
||||
countTextColorDisabled: textColorDisabled,
|
||||
countTextColor: textColor3,
|
||||
heightTiny,
|
||||
|
@ -37,10 +37,12 @@ function self(vars: ThemeCommonVars) {
|
||||
iconColor,
|
||||
iconColorDisabled,
|
||||
iconColorHover,
|
||||
iconColorPressed
|
||||
iconColorPressed,
|
||||
fontWeight
|
||||
} = vars
|
||||
return {
|
||||
...commonVariables,
|
||||
fontWeight,
|
||||
countTextColorDisabled: textColorDisabled,
|
||||
countTextColor: textColor3,
|
||||
heightTiny,
|
||||
|
Loading…
Reference in New Issue
Block a user