@rc-component/tree
Advanced tools
+4
-3
@@ -36,2 +36,3 @@ 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); } | ||
| } = props; | ||
| const nodeId = getTreeNodeId(treeId, eventKey); | ||
| const context = React.useContext(TreeContext); | ||
@@ -238,5 +239,6 @@ const { | ||
| "aria-checked": halfChecked ? 'mixed' : checked, | ||
| "aria-disabled": isDisabled || props.disableCheckbox | ||
| "aria-disabled": isDisabled || props.disableCheckbox, | ||
| "aria-labelledby": nodeId | ||
| }, $custom); | ||
| }, [isCheckable, checked, halfChecked, isDisabled, props.disableCheckbox, props.title]); | ||
| }, [isCheckable, checked, halfChecked, isDisabled, props.disableCheckbox, nodeId]); | ||
@@ -332,3 +334,2 @@ // ============== State: Node State (Open/Close) ============== | ||
| const dragging = context.draggingNodeKey === eventKey; | ||
| const nodeId = getTreeNodeId(treeId, eventKey); | ||
| return /*#__PURE__*/React.createElement("div", _extends({ | ||
@@ -335,0 +336,0 @@ ref: domRef, |
+4
-3
@@ -43,2 +43,3 @@ "use strict"; | ||
| } = props; | ||
| const nodeId = (0, _treeUtil.getTreeNodeId)(treeId, eventKey); | ||
| const context = _react.default.useContext(_contextTypes.TreeContext); | ||
@@ -245,5 +246,6 @@ const { | ||
| "aria-checked": halfChecked ? 'mixed' : checked, | ||
| "aria-disabled": isDisabled || props.disableCheckbox | ||
| "aria-disabled": isDisabled || props.disableCheckbox, | ||
| "aria-labelledby": nodeId | ||
| }, $custom); | ||
| }, [isCheckable, checked, halfChecked, isDisabled, props.disableCheckbox, props.title]); | ||
| }, [isCheckable, checked, halfChecked, isDisabled, props.disableCheckbox, nodeId]); | ||
@@ -339,3 +341,2 @@ // ============== State: Node State (Open/Close) ============== | ||
| const dragging = context.draggingNodeKey === eventKey; | ||
| const nodeId = (0, _treeUtil.getTreeNodeId)(treeId, eventKey); | ||
| return /*#__PURE__*/_react.default.createElement("div", _extends({ | ||
@@ -342,0 +343,0 @@ ref: domRef, |
+1
-1
| { | ||
| "name": "@rc-component/tree", | ||
| "version": "1.2.1", | ||
| "version": "1.2.2", | ||
| "description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
+10
-10
@@ -1,2 +0,2 @@ | ||
| # rc-tree | ||
| # @rc-component/tree | ||
@@ -12,4 +12,4 @@ Tree component. | ||
| [npm-image]: http://img.shields.io/npm/v/rc-tree.svg?style=flat-square | ||
| [npm-url]: http://npmjs.org/package/rc-tree | ||
| [npm-image]: http://img.shields.io/npm/v/@rc-component/tree.svg?style=flat-square | ||
| [npm-url]: http://npmjs.org/package/@rc-component/tree | ||
| [github-actions-image]: https://github.com/react-component/tree/actions/workflows/main.yml/badge.svg | ||
@@ -23,6 +23,6 @@ [github-actions-url]: https://github.com/react-component/tree/actions/workflows/main.yml | ||
| [david-dev-image]: https://david-dm.org/react-component/tree/dev-status.svg?style=flat-square | ||
| [download-image]: https://img.shields.io/npm/dm/rc-tree.svg?style=flat-square | ||
| [download-url]: https://npmjs.org/package/rc-tree | ||
| [bundlephobia-url]: https://bundlephobia.com/result?p=rc-tree | ||
| [bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-tree | ||
| [download-image]: https://img.shields.io/npm/dm/@rc-component/tree.svg?style=flat-square | ||
| [download-url]: https://npmjs.org/package/@rc-component/tree | ||
| [bundlephobia-url]: https://bundlephobia.com/result?p=@rc-component/tree | ||
| [bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/tree | ||
| [dumi-url]: https://github.com/umijs/dumi | ||
@@ -47,6 +47,6 @@ [dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square | ||
| [](https://npmjs.org/package/rc-tree) | ||
| [](https://npmjs.org/package/@rc-component/tree) | ||
| ## Usage | ||
| > Note: `import "rc-tree/assets/index.css"` | ||
| > Note: `import "@rc-component/tree/assets/index.css"` | ||
@@ -145,3 +145,3 @@ see examples | ||
| rc-tree is released under the MIT license. | ||
| @rc-component/tree is released under the MIT license. | ||
@@ -148,0 +148,0 @@ ## Other tree views |
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
315351
0.06%7616
0.03%