mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-31 14:20:53 +08:00
fix(layout): theme not working
This commit is contained in:
parent
39dcb456df
commit
5ac48a17f5
@ -54,13 +54,13 @@ export default defineComponent({
|
||||
},
|
||||
setup (props) {
|
||||
const themeRef = useTheme('Layout', 'Layout', style, layoutLight, props)
|
||||
const {
|
||||
common: { cubicBezierEaseInOut },
|
||||
self: { color, textColor }
|
||||
} = themeRef.value
|
||||
return {
|
||||
mergedTheme: themeRef,
|
||||
cssVars: computed(() => {
|
||||
const {
|
||||
common: { cubicBezierEaseInOut },
|
||||
self: { color, textColor }
|
||||
} = themeRef.value
|
||||
return {
|
||||
'--bezier': cubicBezierEaseInOut,
|
||||
'--color': color,
|
||||
|
Loading…
x
Reference in New Issue
Block a user