@rc-component/tree
Advanced tools
+1
-1
@@ -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; |
+4
-2
@@ -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 @@ }; |
+1
-1
@@ -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; |
+4
-2
@@ -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 @@ }; |
+1
-1
| { | ||
| "name": "@rc-component/tree", | ||
| "version": "1.2.4", | ||
| "version": "1.3.0", | ||
| "description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
317199
0.09%7672
0.05%