Socket
Socket
Sign inDemoInstall

rc-collapse

Package Overview
Dependencies
Maintainers
5
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-collapse - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

12

es/Collapse.js

@@ -35,3 +35,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

function Collapse(props) {
function Collapse(_props) {
var _this;

@@ -41,3 +41,3 @@

_this = _super.call(this, props);
_this = _super.call(this, _props);

@@ -129,8 +129,8 @@ _this.onClickItem = function (key) {

var activeKey = props.activeKey,
defaultActiveKey = props.defaultActiveKey;
var _activeKey = _props.activeKey,
defaultActiveKey = _props.defaultActiveKey;
var currentActiveKey = defaultActiveKey;
if ('activeKey' in props) {
currentActiveKey = activeKey;
if ('activeKey' in _props) {
currentActiveKey = _activeKey;
}

@@ -137,0 +137,0 @@

import * as React from 'react';
import { CollapsePanelProps } from './interface';
import type { CollapsePanelProps } from './interface';
declare class CollapsePanel extends React.Component<CollapsePanelProps, any> {

@@ -4,0 +4,0 @@ static defaultProps: {

@@ -25,4 +25,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";

_this = _super.apply(this, arguments);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _super.call.apply(_super, [this].concat(args));
_this.handleItemClick = function () {

@@ -87,2 +91,3 @@ var _this$props = _this.props,

var ifExtraExist = extra !== null && extra !== undefined && typeof extra !== 'boolean';
return /*#__PURE__*/React.createElement("div", {

@@ -104,3 +109,3 @@ className: itemCls,

className: "".concat(prefixCls, "-header-text")
}, header) : header, extra && /*#__PURE__*/React.createElement("div", {
}, header) : header, ifExtraExist && /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-extra")

@@ -107,0 +112,0 @@ }, extra)), /*#__PURE__*/React.createElement(CSSMotion, _extends({

@@ -55,7 +55,7 @@ "use strict";

function Collapse(props) {
function Collapse(_props) {
var _this;
(0, _classCallCheck2.default)(this, Collapse);
_this = _super.call(this, props);
_this = _super.call(this, _props);

@@ -147,8 +147,8 @@ _this.onClickItem = function (key) {

var activeKey = props.activeKey,
defaultActiveKey = props.defaultActiveKey;
var _activeKey = _props.activeKey,
defaultActiveKey = _props.defaultActiveKey;
var currentActiveKey = defaultActiveKey;
if ('activeKey' in props) {
currentActiveKey = activeKey;
if ('activeKey' in _props) {
currentActiveKey = _activeKey;
}

@@ -155,0 +155,0 @@

import * as React from 'react';
import { CollapsePanelProps } from './interface';
import type { CollapsePanelProps } from './interface';
declare class CollapsePanel extends React.Component<CollapsePanelProps, any> {

@@ -4,0 +4,0 @@ static defaultProps: {

@@ -44,4 +44,9 @@ "use strict";

(0, _classCallCheck2.default)(this, CollapsePanel);
_this = _super.apply(this, arguments);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _super.call.apply(_super, [this].concat(args));
_this.handleItemClick = function () {

@@ -106,2 +111,3 @@ var _this$props = _this.props,

var ifExtraExist = extra !== null && extra !== undefined && typeof extra !== 'boolean';
return /*#__PURE__*/React.createElement("div", {

@@ -123,3 +129,3 @@ className: itemCls,

className: "".concat(prefixCls, "-header-text")
}, header) : header, extra && /*#__PURE__*/React.createElement("div", {
}, header) : header, ifExtraExist && /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-extra")

@@ -126,0 +132,0 @@ }, extra)), /*#__PURE__*/React.createElement(_rcMotion.default, (0, _extends2.default)({

{
"name": "rc-collapse",
"version": "3.1.1",
"version": "3.1.2",
"description": "rc-collapse 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