fix(themeable): theme will follow out themed component rather than config provider

This commit is contained in:
07akioni 2019-12-23 16:48:14 +08:00
parent 225d99fc7a
commit 533e0ab32d

View File

@ -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
}