Comparing version 1.1.2 to 1.1.3
# History | ||
---- | ||
## 1.1.3 | ||
* support `iconPrefix` property, default is `rc` | ||
## 1.1.2 | ||
* fix bugs | ||
## 1.1.1 | ||
@@ -5,0 +13,0 @@ |
@@ -11,8 +11,10 @@ 'use strict'; | ||
var prefixCls = props.prefixCls; | ||
var iconPrefix = props.iconPrefix; | ||
var maxWidth = props.maxDescriptionWidth; | ||
var icon = props.icon ? props.icon : props.status !== 'finish' ? React.createElement( | ||
var iconName = props.icon ? props.icon : 'check'; | ||
var icon = !props.icon && props.status !== 'finish' ? React.createElement( | ||
'span', | ||
{ className: prefixCls + '-icon' }, | ||
props.stepNumber | ||
) : React.createElement('span', { className: prefixCls + '-icon ' + ' anticon anticon-check' }); | ||
) : React.createElement('span', { className: prefixCls + '-icon ' + iconPrefix + 'icon ' + iconPrefix + 'icon-' + iconName }); | ||
return React.createElement( | ||
@@ -19,0 +21,0 @@ 'div', |
@@ -19,2 +19,3 @@ 'use strict'; | ||
prefixCls: 'rc-steps', | ||
iconPrefix: 'rc', | ||
maxDescriptionWidth: 120 | ||
@@ -88,2 +89,3 @@ }; | ||
var maxDescriptionWidth = props.maxDescriptionWidth; | ||
var iconPrefix = props.iconPrefix; | ||
var len = children.length - 1; | ||
@@ -100,2 +102,3 @@ var iws = this._itemsWidth; | ||
prefixCls: prefixCls, | ||
iconPrefix: iconPrefix, | ||
maxDescriptionWidth: maxDescriptionWidth | ||
@@ -102,0 +105,0 @@ }; |
{ | ||
"name": "rc-steps", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "steps ui component for react", | ||
@@ -8,3 +8,3 @@ "keywords": [ | ||
"react-component", | ||
"react-tabs" | ||
"react-steps" | ||
], | ||
@@ -11,0 +11,0 @@ "main": "./lib/index", |
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
21381
808