rc-tree-select
Advanced tools
Comparing version 5.1.4 to 5.1.5
@@ -1,5 +0,7 @@ | ||
import TreeSelect, { TreeSelectProps } from './TreeSelect'; | ||
import TreeSelect from './TreeSelect'; | ||
import type { TreeSelectProps } from './TreeSelect'; | ||
import TreeNode from './TreeNode'; | ||
import { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from './utils/strategyUtil'; | ||
export { TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeSelectProps }; | ||
export { TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT }; | ||
export type { TreeSelectProps }; | ||
export default TreeSelect; |
@@ -38,3 +38,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
fieldNames = _React$useContext.fieldNames, | ||
onSelect = _React$useContext.onSelect; | ||
onSelect = _React$useContext.onSelect, | ||
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth; | ||
@@ -243,3 +244,3 @@ var _React$useContext2 = React.useContext(LegacyContext), | ||
itemHeight: listItemHeight, | ||
virtual: virtual, | ||
virtual: virtual !== false && dropdownMatchSelectWidth !== false, | ||
multiple: multiple, | ||
@@ -246,0 +247,0 @@ icon: treeIcon, |
@@ -82,4 +82,4 @@ import * as React from 'react'; | ||
treeNodeFilterProp?: string; | ||
onSelect?: SelectProps<OptionType>['onSelect']; | ||
onDeselect?: SelectProps<OptionType>['onDeselect']; | ||
onSelect?: SelectProps<ValueType, OptionType>['onSelect']; | ||
onDeselect?: SelectProps<ValueType, OptionType>['onDeselect']; | ||
showCheckedStrategy?: CheckedStrategy; | ||
@@ -86,0 +86,0 @@ treeNodeLabelProp?: string; |
@@ -456,2 +456,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
virtual: virtual, | ||
dropdownMatchSelectWidth: dropdownMatchSelectWidth, | ||
listHeight: listHeight, | ||
@@ -463,3 +464,3 @@ listItemHeight: listItemHeight, | ||
}; | ||
}, [virtual, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context ======================= | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context ======================= | ||
@@ -466,0 +467,0 @@ var legacyContext = React.useMemo(function () { |
@@ -5,2 +5,3 @@ import * as React from 'react'; | ||
virtual?: boolean; | ||
dropdownMatchSelectWidth?: boolean | number; | ||
listHeight: number; | ||
@@ -7,0 +8,0 @@ listItemHeight: number; |
@@ -1,5 +0,7 @@ | ||
import TreeSelect, { TreeSelectProps } from './TreeSelect'; | ||
import TreeSelect from './TreeSelect'; | ||
import type { TreeSelectProps } from './TreeSelect'; | ||
import TreeNode from './TreeNode'; | ||
import { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from './utils/strategyUtil'; | ||
export { TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeSelectProps }; | ||
export { TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT }; | ||
export type { TreeSelectProps }; | ||
export default TreeSelect; |
@@ -60,3 +60,4 @@ "use strict"; | ||
fieldNames = _React$useContext.fieldNames, | ||
onSelect = _React$useContext.onSelect; | ||
onSelect = _React$useContext.onSelect, | ||
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth; | ||
@@ -265,3 +266,3 @@ var _React$useContext2 = React.useContext(_LegacyContext.default), | ||
itemHeight: listItemHeight, | ||
virtual: virtual, | ||
virtual: virtual !== false && dropdownMatchSelectWidth !== false, | ||
multiple: multiple, | ||
@@ -268,0 +269,0 @@ icon: treeIcon, |
@@ -82,4 +82,4 @@ import * as React from 'react'; | ||
treeNodeFilterProp?: string; | ||
onSelect?: SelectProps<OptionType>['onSelect']; | ||
onDeselect?: SelectProps<OptionType>['onDeselect']; | ||
onSelect?: SelectProps<ValueType, OptionType>['onSelect']; | ||
onDeselect?: SelectProps<ValueType, OptionType>['onDeselect']; | ||
showCheckedStrategy?: CheckedStrategy; | ||
@@ -86,0 +86,0 @@ treeNodeLabelProp?: string; |
@@ -492,2 +492,3 @@ "use strict"; | ||
virtual: virtual, | ||
dropdownMatchSelectWidth: dropdownMatchSelectWidth, | ||
listHeight: listHeight, | ||
@@ -499,3 +500,3 @@ listItemHeight: listItemHeight, | ||
}; | ||
}, [virtual, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context ======================= | ||
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context ======================= | ||
@@ -502,0 +503,0 @@ var legacyContext = React.useMemo(function () { |
@@ -5,2 +5,3 @@ import * as React from 'react'; | ||
virtual?: boolean; | ||
dropdownMatchSelectWidth?: boolean | number; | ||
listHeight: number; | ||
@@ -7,0 +8,0 @@ listItemHeight: number; |
{ | ||
"name": "rc-tree-select", | ||
"version": "5.1.4", | ||
"version": "5.1.5", | ||
"description": "tree-select ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -57,3 +57,3 @@ # rc-tree-select | ||
|choiceTransitionName | css animation name for selected items at multiple mode | String | '' | | ||
|dropdownMatchSelectWidth | whether dropdown's with is same with select. Default set `min-width` same as input | bool | - | | ||
|dropdownMatchSelectWidth | whether dropdown's with is same with select. Default set `min-width` same as input | bool | true | | ||
|dropdownClassName | additional className applied to dropdown | String | - | | ||
@@ -60,0 +60,0 @@ |dropdownStyle | additional style applied to dropdown | Object | {} | |
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
148106
2940