mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-27 04:09:51 +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 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
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user