Socket
Socket
Sign inDemoInstall

rc-steps

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-steps - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

HISTORY.md
# History
----
##
## 1.0.3
* support `prefixCls` property

@@ -10,13 +10,14 @@ 'use strict';

var props = this.props;
var prefixCls = props.prefixCls;
var icon = props.icon ? props.icon : props.status !== 'finish' ? React.createElement(
'span',
{ className: 'rc-steps-icon' },
{ className: prefixCls + '-steps-icon' },
props.stepNumber
) : React.createElement('span', { className: 'rc-steps-icon anticon anticon-check' });
) : React.createElement('span', { className: prefixCls + '-steps-icon ' + prefixCls + 'icon ' + prefixCls + 'icon-check' });
return React.createElement(
'div',
{ className: 'rc-steps-item rc-steps-status-' + props.status + (props.icon ? ' rc-steps-custom' : '') },
{ className: prefixCls + '-steps-item ' + prefixCls + '-steps-status-' + props.status + (props.icon ? ' ' + prefixCls + '-steps-custom' : '') },
React.createElement(
'div',
{ className: 'rc-steps-head' },
{ className: prefixCls + '-steps-head' },
icon

@@ -26,6 +27,6 @@ ),

'div',
{ className: 'rc-steps-main' },
{ className: prefixCls + '-steps-main' },
React.createElement(
'div',
{ className: 'rc-steps-title' },
{ className: prefixCls + '-steps-title' },
props.title

@@ -35,3 +36,3 @@ ),

'div',
{ className: 'rc-steps-description' },
{ className: prefixCls + '-steps-description' },
props.description

@@ -42,3 +43,3 @@ )

'div',
{ className: 'rc-steps-tail', style: { width: props.tailWidth } },
{ className: prefixCls + '-steps-tail', style: { width: props.tailWidth } },
React.createElement('i', null)

@@ -45,0 +46,0 @@ ) : ''

@@ -62,2 +62,3 @@ 'use strict';

var props = this.props;
var prefixCls = props.prefixCls ? props.prefixCls : 'rc';
var children = props.children;

@@ -67,3 +68,3 @@ var len = children.length - 1;

'div',
{ className: 'rc-steps' + (this.state.init ? '' : ' rc-steps-init') + (props.size === 'small' ? ' rc-steps-small' : '') },
{ className: prefixCls + '-steps' + (this.state.init ? '' : ' ' + prefixCls + '-steps-init') + (props.size === 'small' ? ' ' + prefixCls + '-steps-small' : '') },
React.Children.map(children, function (ele, idx) {

@@ -73,3 +74,4 @@ var np = {

stepLast: idx === len,
tailWidth: this.state.tailWidth
tailWidth: this.state.tailWidth,
prefixCls: prefixCls
};

@@ -76,0 +78,0 @@ return React.cloneElement(ele, np);

{
"name": "rc-steps",
"version": "1.0.2",
"version": "1.0.3",
"description": "steps ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc