🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@rc-component/tree

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/tree - npm Package Compare versions

Comparing version
1.2.4
to
1.3.0
+1
-1
es/Tree.d.ts

@@ -30,3 +30,3 @@ import * as React from 'react';

export type ExpandAction = false | 'click' | 'doubleClick';
export type SemanticName = 'itemIcon' | 'item' | 'itemTitle';
export type SemanticName = 'itemIcon' | 'item' | 'itemTitle' | 'itemSwitcher';
export interface TreeProps<TreeDataType extends BasicDataNode = DataNode> {

@@ -33,0 +33,0 @@ prefixCls: string;

@@ -212,3 +212,4 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

return switcherIconDom !== false ? /*#__PURE__*/React.createElement("span", {
className: clsx(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher-noop`)
className: clsx(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher-noop`, treeClassNames?.itemSwitcher),
style: styles?.itemSwitcher
}, switcherIconDom) : null;

@@ -219,3 +220,4 @@ }

onClick: onExpand,
className: clsx(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher_${expanded ? ICON_OPEN : ICON_CLOSE}`)
className: clsx(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher_${expanded ? ICON_OPEN : ICON_CLOSE}`, treeClassNames?.itemSwitcher),
style: styles?.itemSwitcher
}, switcherIconDom) : null;

@@ -222,0 +224,0 @@ };

@@ -30,3 +30,3 @@ import * as React from 'react';

export type ExpandAction = false | 'click' | 'doubleClick';
export type SemanticName = 'itemIcon' | 'item' | 'itemTitle';
export type SemanticName = 'itemIcon' | 'item' | 'itemTitle' | 'itemSwitcher';
export interface TreeProps<TreeDataType extends BasicDataNode = DataNode> {

@@ -33,0 +33,0 @@ prefixCls: string;

@@ -219,3 +219,4 @@ "use strict";

return switcherIconDom !== false ? /*#__PURE__*/_react.default.createElement("span", {
className: (0, _clsx.clsx)(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher-noop`)
className: (0, _clsx.clsx)(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher-noop`, treeClassNames?.itemSwitcher),
style: styles?.itemSwitcher
}, switcherIconDom) : null;

@@ -226,3 +227,4 @@ }

onClick: onExpand,
className: (0, _clsx.clsx)(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher_${expanded ? ICON_OPEN : ICON_CLOSE}`)
className: (0, _clsx.clsx)(`${context.prefixCls}-switcher`, `${context.prefixCls}-switcher_${expanded ? ICON_OPEN : ICON_CLOSE}`, treeClassNames?.itemSwitcher),
style: styles?.itemSwitcher
}, switcherIconDom) : null;

@@ -229,0 +231,0 @@ };

{
"name": "@rc-component/tree",
"version": "1.2.4",
"version": "1.3.0",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "engines": {