Comparing version 2.1.4 to 2.1.5
@@ -92,4 +92,5 @@ 'use strict'; | ||
var size = props.size; | ||
var current = props.current; | ||
var restProps = _objectWithoutProperties(props, ['prefixCls', 'style', 'className', 'children', 'direction', 'labelPlacement', 'iconPrefix', 'status', 'size']); | ||
var restProps = _objectWithoutProperties(props, ['prefixCls', 'style', 'className', 'children', 'direction', 'labelPlacement', 'iconPrefix', 'status', 'size', 'current']); | ||
@@ -117,3 +118,3 @@ var lastIndex = children.length - 1; | ||
// fix tail color | ||
if (props.status === 'error' && idx === props.current - 1) { | ||
if (status === 'error' && idx === current - 1) { | ||
np.className = props.prefixCls + '-next-error'; | ||
@@ -123,5 +124,5 @@ } | ||
if (!ele.props.status) { | ||
if (idx === props.current) { | ||
if (idx === current) { | ||
np.status = status; | ||
} else if (idx < props.current) { | ||
} else if (idx < current) { | ||
np.status = 'finish'; | ||
@@ -128,0 +129,0 @@ } else { |
{ | ||
"name": "rc-steps", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"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
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
31878
1029