Comparing version 2.3.0 to 2.4.0
# History | ||
---- | ||
## 2.4.0 | ||
* Refactor for extra width of tail. https://github.com/ant-design/ant-design/issues/5083 | ||
## 2.3.0 | ||
@@ -5,0 +9,0 @@ |
@@ -51,3 +51,2 @@ 'use strict'; | ||
var style = _props.style; | ||
var tailWidth = _props.tailWidth; | ||
var itemWidth = _props.itemWidth; | ||
@@ -66,3 +65,3 @@ var _props$status = _props.status; | ||
var restProps = _objectWithoutProperties(_props, ['className', 'prefixCls', 'style', 'tailWidth', 'itemWidth', 'status', 'iconPrefix', 'icon', 'wrapperStyle', 'adjustMarginRight', 'stepLast', 'stepNumber', 'description', 'title', 'progressDot']); | ||
var restProps = _objectWithoutProperties(_props, ['className', 'prefixCls', 'style', 'itemWidth', 'status', 'iconPrefix', 'icon', 'wrapperStyle', 'adjustMarginRight', 'stepLast', 'stepNumber', 'description', 'title', 'progressDot']); | ||
@@ -114,4 +113,4 @@ var iconClassName = (0, _classnames2["default"])((_classNames = {}, _defineProperty(_classNames, prefixCls + '-icon', true), _defineProperty(_classNames, iconPrefix + 'icon', true), _defineProperty(_classNames, iconPrefix + 'icon-' + icon, icon && isString(icon)), _defineProperty(_classNames, iconPrefix + 'icon-check', !icon && status === 'finish'), _defineProperty(_classNames, iconPrefix + 'icon-cross', !icon && status === 'error'), _classNames)); | ||
ref: 'tail', | ||
style: tailWidth ? { width: tailWidth } : {}, | ||
className: prefixCls + '-tail' | ||
className: prefixCls + '-tail', | ||
style: { paddingRight: -adjustMarginRight } | ||
}, | ||
@@ -167,3 +166,2 @@ _react2["default"].createElement('i', null) | ||
wrapperStyle: _react.PropTypes.object, | ||
tailWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), | ||
itemWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), | ||
@@ -170,0 +168,0 @@ status: _react.PropTypes.string, |
@@ -113,3 +113,2 @@ 'use strict'; | ||
var adjustMarginRight = direction === 'vertical' || idx === lastIndex ? null : -Math.round(_this2.state.lastStepOffsetWidth / lastIndex + 1); | ||
var tailWidth = direction === 'vertical' ? '' : _this2.state.firstStepOffsetWidth + Math.round(_this2.state.lastStepOffsetWidth / 2 + 1) - Math.round(_this2.state.lastStepOffsetWidth / lastIndex + 1); | ||
var np = { | ||
@@ -119,3 +118,2 @@ stepNumber: (idx + 1).toString(), | ||
itemWidth: itemWidth, | ||
tailWidth: tailWidth, | ||
adjustMarginRight: adjustMarginRight, | ||
@@ -122,0 +120,0 @@ prefixCls: prefixCls, |
{ | ||
"name": "rc-steps", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "steps ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
38549
1163