mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix(themeable): theme will follow out themed component rather than config provider
This commit is contained in:
parent
225d99fc7a
commit
533e0ab32d
@ -18,8 +18,8 @@ export default {
|
||||
synthesizedTheme () {
|
||||
if (this.theme !== null) {
|
||||
return this.theme
|
||||
} else if (this.NThemedComponent && this.NThemedComponent.synthesizedTheme) {
|
||||
return this.NThemedComponent.synthesizedTheme
|
||||
} else if (this.NThemedComponent && this.NThemedComponent.theme) {
|
||||
return this.NThemedComponent.theme
|
||||
} else {
|
||||
return (this.NConfigProvider && this.NConfigProvider.synthesizedTheme) || null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user