diff --git a/README.md b/README.md index f1d5fef0..4916ff45 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,6 @@ online example: https://tree-select-react-component.vercel.app/ |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 | - | |dropdownStyle | additional style applied to dropdown | Object | {} | -|dropdownPopupAlign | specify alignment for dropdown (alignConfig of [dom-align](https://github.com/yiminghe/dom-align)) | Object | - | |onDropdownVisibleChange | control dropdown visible | function | `() => { return true; }` | |notFoundContent | specify content to show when no result matches. | String | 'Not Found' | |showSearch | whether show search input in single mode | bool | true | @@ -75,6 +74,7 @@ online example: https://tree-select-react-component.vercel.app/ |onSelect | called when select treeNode | function(value, node, extra) | - | |onSearch | called when input changed | function | - | |onTreeExpand | called when tree node expand | function(expandedKeys) | - | +|onPopupScroll | called when popup scroll | function(event) | - | |showCheckedStrategy | `TreeSelect.SHOW_ALL`: show all checked treeNodes (Include parent treeNode). `TreeSelect.SHOW_PARENT`: show checked treeNodes (Just show parent treeNode). Default just show child. | enum{TreeSelect.SHOW_ALL, TreeSelect.SHOW_PARENT, TreeSelect.SHOW_CHILD } | TreeSelect.SHOW_CHILD | |treeIcon | show tree icon | bool | false | |treeLine | show tree line | bool | false | diff --git a/examples/basic.tsx b/examples/basic.tsx index a0d97993..4b6b8cb4 100644 --- a/examples/basic.tsx +++ b/examples/basic.tsx @@ -212,6 +212,9 @@ class Demo extends React.Component { }); }} onSelect={this.onSelect} + onPopupScroll={evt => { + console.log('onPopupScroll:', evt.target); + }} />