Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1.2 to 1.1.3

8

HISTORY.md
# History
----
## 1.1.3
* support `iconPrefix` property, default is `rc`
## 1.1.2
* fix bugs
## 1.1.1

@@ -5,0 +13,0 @@

6

lib/Step.js

@@ -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

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