rc-tree-select
Advanced tools
Comparing version 5.13.0 to 5.14.0
@@ -34,2 +34,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
listItemHeight = _React$useContext.listItemHeight, | ||
listItemScrollOffset = _React$useContext.listItemScrollOffset, | ||
treeData = _React$useContext.treeData, | ||
@@ -225,2 +226,3 @@ fieldNames = _React$useContext.fieldNames, | ||
itemHeight: listItemHeight, | ||
itemScrollOffset: listItemScrollOffset, | ||
virtual: virtual !== false && dropdownMatchSelectWidth !== false, | ||
@@ -227,0 +229,0 @@ multiple: multiple, |
@@ -105,2 +105,3 @@ import type { BaseSelectPropsWithoutPrivate, BaseSelectRef, SelectProps } from 'rc-select'; | ||
listItemHeight?: number; | ||
listItemScrollOffset?: number; | ||
onDropdownVisibleChange?: (open: boolean) => void; | ||
@@ -107,0 +108,0 @@ treeLine?: boolean; |
@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"]; | ||
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "listItemScrollOffset", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"]; | ||
import { BaseSelect } from 'rc-select'; | ||
@@ -75,2 +75,4 @@ import useId from "rc-select/es/hooks/useId"; | ||
listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, | ||
_props$listItemScroll = props.listItemScrollOffset, | ||
listItemScrollOffset = _props$listItemScroll === void 0 ? 0 : _props$listItemScroll, | ||
onDropdownVisibleChange = props.onDropdownVisibleChange, | ||
@@ -467,2 +469,3 @@ _props$dropdownMatchS = props.dropdownMatchSelectWidth, | ||
listItemHeight: listItemHeight, | ||
listItemScrollOffset: listItemScrollOffset, | ||
treeData: filteredTreeData, | ||
@@ -473,3 +476,3 @@ fieldNames: mergedFieldNames, | ||
}; | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, listItemScrollOffset, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); | ||
@@ -476,0 +479,0 @@ // ======================= Legacy Context ======================= |
@@ -9,2 +9,3 @@ import * as React from 'react'; | ||
listItemHeight: number; | ||
listItemScrollOffset?: number; | ||
treeData: DefaultOptionType[]; | ||
@@ -11,0 +12,0 @@ fieldNames: InternalFieldName; |
@@ -44,2 +44,3 @@ "use strict"; | ||
listItemHeight = _React$useContext.listItemHeight, | ||
listItemScrollOffset = _React$useContext.listItemScrollOffset, | ||
treeData = _React$useContext.treeData, | ||
@@ -235,2 +236,3 @@ fieldNames = _React$useContext.fieldNames, | ||
itemHeight: listItemHeight, | ||
itemScrollOffset: listItemScrollOffset, | ||
virtual: virtual !== false && dropdownMatchSelectWidth !== false, | ||
@@ -237,0 +239,0 @@ multiple: multiple, |
@@ -105,2 +105,3 @@ import type { BaseSelectPropsWithoutPrivate, BaseSelectRef, SelectProps } from 'rc-select'; | ||
listItemHeight?: number; | ||
listItemScrollOffset?: number; | ||
onDropdownVisibleChange?: (open: boolean) => void; | ||
@@ -107,0 +108,0 @@ treeLine?: boolean; |
@@ -35,3 +35,3 @@ "use strict"; | ||
var _warningPropsUtil = _interopRequireDefault(require("./utils/warningPropsUtil")); | ||
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"]; | ||
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "listItemScrollOffset", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"]; | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
@@ -84,2 +84,4 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, | ||
_props$listItemScroll = props.listItemScrollOffset, | ||
listItemScrollOffset = _props$listItemScroll === void 0 ? 0 : _props$listItemScroll, | ||
onDropdownVisibleChange = props.onDropdownVisibleChange, | ||
@@ -476,2 +478,3 @@ _props$dropdownMatchS = props.dropdownMatchSelectWidth, | ||
listItemHeight: listItemHeight, | ||
listItemScrollOffset: listItemScrollOffset, | ||
treeData: filteredTreeData, | ||
@@ -482,3 +485,3 @@ fieldNames: mergedFieldNames, | ||
}; | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, listItemScrollOffset, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); | ||
@@ -485,0 +488,0 @@ // ======================= Legacy Context ======================= |
@@ -9,2 +9,3 @@ import * as React from 'react'; | ||
listItemHeight: number; | ||
listItemScrollOffset?: number; | ||
treeData: DefaultOptionType[]; | ||
@@ -11,0 +12,0 @@ fieldNames: InternalFieldName; |
{ | ||
"name": "rc-tree-select", | ||
"version": "5.13.0", | ||
"version": "5.14.0", | ||
"description": "tree-select ui component for react", | ||
@@ -76,5 +76,5 @@ "keywords": [ | ||
"rc-select": "~14.9.0", | ||
"rc-tree": "~5.7.0", | ||
"rc-tree": "~5.8.0", | ||
"rc-util": "^5.16.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163326
3169
+ Addedrc-tree@5.8.8(transitive)
- Removedrc-tree@5.7.12(transitive)
Updatedrc-tree@~5.8.0