Skip to content

Commit e97db0c

Browse files
committed
重新编译
1 parent ef2166c commit e97db0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/components/themr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ exports.default = function (componentName, localTheme) {
151151
};
152152

153153
Themed.prototype.render = function render() {
154-
this.theme_ = this.calcTheme(nextProps);
154+
this.theme_ = this.calcTheme(this.props);
155155
return _react2.default.createElement(ThemedComponent, this.props.mapThemrProps(this.props, this.theme_));
156156
};
157157

src/components/themr.js

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

145145
render() {
146-
this.theme_ = this.calcTheme(nextProps)
146+
this.theme_ = this.calcTheme(this.props)
147147
return React.createElement(
148148
ThemedComponent,
149149
this.props.mapThemrProps(this.props, this.theme_)

0 commit comments

Comments
 (0)