Skip to content

Commit 8c99889

Browse files
committed
增加可以动态更新主题的特征
1 parent 8d12cfd commit 8c99889

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/themr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
143143
}
144144

145145
render() {
146+
this.theme_ = this.calcTheme(nextProps)
146147
return React.createElement(
147148
ThemedComponent,
148149
this.props.mapThemrProps(this.props, this.theme_)

0 commit comments

Comments
 (0)