Comparing version 1.2.3 to 1.2.4
@@ -20,6 +20,10 @@ 'use strict'; | ||
iconPrefix: 'rc', | ||
maxDescriptionWidth: 120 | ||
maxDescriptionWidth: 120, | ||
direction: '' | ||
}; | ||
}, | ||
componentDidMount: function componentDidMount() { | ||
if (this.props.direction === 'vertical') { | ||
return; | ||
} | ||
var $dom = React.findDOMNode(this); | ||
@@ -55,2 +59,5 @@ var len = $dom.children.length - 1; | ||
componentWillUnmount: function componentWillUnmount() { | ||
if (this.props.direction === 'vertical') { | ||
return; | ||
} | ||
if (window.attachEvent) { | ||
@@ -62,2 +69,5 @@ window.detachEvent('onresize', this._resize); | ||
}, | ||
componentDidUpdate: function componentDidUpdate() { | ||
this._resize(); | ||
}, | ||
_resize: function _resize() { | ||
@@ -64,0 +74,0 @@ var w = Math.floor(React.findDOMNode(this).offsetWidth); |
{ | ||
"name": "rc-steps", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "steps ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
23526
8
887
1