Comparing version 1.5.0 to 1.5.1
@@ -38,4 +38,4 @@ 'use strict'; | ||
var iconClassName = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-icon', true), _defineProperty(_classNames, iconPrefix + 'icon', true), _defineProperty(_classNames, iconPrefix + 'icon-' + (icon || 'check'), true), _classNames)); | ||
var iconNode = icon || status === 'finish' ? _react2["default"].createElement('span', { className: iconClassName }) : _react2["default"].createElement( | ||
var iconClassName = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-icon', true), _defineProperty(_classNames, iconPrefix + 'icon', true), _defineProperty(_classNames, iconPrefix + 'icon-check', !icon && status === 'finish'), _defineProperty(_classNames, iconPrefix + 'icon-cross', !icon && status === 'error'), _classNames)); | ||
var iconNode = icon || status === 'finish' || status === 'error' ? _react2["default"].createElement('span', { className: iconClassName }) : _react2["default"].createElement( | ||
'span', | ||
@@ -42,0 +42,0 @@ { className: prefixCls + '-icon' }, |
@@ -160,7 +160,2 @@ 'use strict'; | ||
_react2["default"].Children.map(children, function (ele, idx) { | ||
// fix tail color | ||
var nextErrorClassName = ''; | ||
if (props.status === 'error' && idx === props.current - 1) { | ||
nextErrorClassName = props.prefixCls + '-next-error'; | ||
} | ||
var np = { | ||
@@ -172,5 +167,10 @@ stepNumber: (idx + 1).toString(), | ||
iconPrefix: iconPrefix, | ||
maxDescriptionWidth: maxDescriptionWidth, | ||
className: nextErrorClassName | ||
maxDescriptionWidth: maxDescriptionWidth | ||
}; | ||
// fix tail color | ||
if (props.status === 'error' && idx === props.current - 1) { | ||
np.className = props.prefixCls + '-next-error'; | ||
} | ||
if (!ele.props.status) { | ||
@@ -177,0 +177,0 @@ if (idx === props.current) { |
{ | ||
"name": "rc-steps", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "steps ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,32 +0,7 @@ | ||
# rc-tabs | ||
# rc-steps | ||
--- | ||
react steps component | ||
React steps component | ||
## Screenshot | ||
## install | ||
## Feature | ||
## Usage | ||
```js | ||
var Steps = require('rc-steps'); | ||
``` | ||
## API | ||
### Steps | ||
#### props: | ||
### Steps.Step | ||
#### props: | ||
## Development | ||
@@ -39,2 +14,12 @@ | ||
## Usage | ||
```jsx | ||
<Steps current={1}> | ||
<Steps.Step title="first" /> | ||
<Steps.Step title="second" /> | ||
<Steps.Step title="third" /> | ||
</Steps> | ||
``` | ||
## Example | ||
@@ -46,5 +31,4 @@ | ||
## License | ||
rc-steps is released under the MIT license. | ||
rc-steps is released under the MIT license. |
Sorry, the diff of this file is not supported yet
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
31128
1022
33