nuke-theme-provider
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="2.1.6"></a> | ||
## [2.1.6](https://gitlab.alibaba-inc.com/nuke/theme-provider/compare/v2.1.4...v2.1.6) (2018-08-15) | ||
### Bug Fixes | ||
* theme-provider should check if root component exist ([cdba547](https://gitlab.alibaba-inc.com/nuke/theme-provider/commit/cdba547)) | ||
<a name="2.1.4"></a> | ||
@@ -8,0 +20,0 @@ ## [2.1.4](https://gitlab.alibaba-inc.com/nuke/theme-provider/compare/v2.1.3...v2.1.4) (2018-08-15) |
{ | ||
"name": "nuke-theme-provider", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"description": "主题换肤", | ||
@@ -43,3 +43,3 @@ "main": "lib/index", | ||
"hoist-non-react-statics": "^2.3.0", | ||
"nuke-core": "^2.1.3" | ||
"nuke-core": "^2.1.6" | ||
}, | ||
@@ -53,6 +53,6 @@ "devDependencies": { | ||
"eslint-plugin-react": "7.1.0", | ||
"nuke-button": "^2.1.4", | ||
"nuke-dialog": "^2.1.4", | ||
"nuke-env": "^2.1.3", | ||
"nuke-page": "^2.1.4", | ||
"nuke-button": "^2.1.6", | ||
"nuke-dialog": "^2.1.6", | ||
"nuke-env": "^2.1.6", | ||
"nuke-page": "^2.1.6", | ||
"rax-text": "^0.x.x" | ||
@@ -64,3 +64,3 @@ }, | ||
"license": "Apache", | ||
"gitHead": "8b2a213253ed6cdf6d613a10bea387e80043fa6a" | ||
"gitHead": "9b72a52f7ba75032458a88b2e3beaeb29059b939" | ||
} |
@@ -132,7 +132,3 @@ /** @jsx createElement */ | ||
const style = nextProps.style; | ||
const finalStyle = this.getFinalStyle( | ||
componentStyle, | ||
nextContext, | ||
style | ||
); | ||
const finalStyle = this.getFinalStyle(componentStyle, nextContext, style); | ||
this.setState({ | ||
@@ -182,7 +178,8 @@ style: finalStyle, | ||
this.wrappedInstance = this._root; | ||
Object.keys(this.wrappedInstance).forEach((attr) => { | ||
if (!this[attr]) { | ||
this[attr] = this.wrappedInstance[attr]; | ||
} | ||
}); | ||
this.wrappedInstance && | ||
Object.keys(this.wrappedInstance).forEach((attr) => { | ||
if (!this[attr]) { | ||
this[attr] = this.wrappedInstance[attr]; | ||
} | ||
}); | ||
} | ||
@@ -200,10 +197,3 @@ | ||
const { addedProps, style } = this.state; | ||
return ( | ||
<WrappedComponent | ||
{...this.props} | ||
{...addedProps} | ||
themeStyle={style} | ||
ref={this.setWrappedInstance} | ||
/> | ||
); | ||
return <WrappedComponent {...this.props} {...addedProps} themeStyle={style} ref={this.setWrappedInstance} />; | ||
} | ||
@@ -210,0 +200,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34323
387
5
Updatednuke-core@^2.1.6