diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index b95bdc9e30..ad2aaea460 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -100,3 +100,13 @@ Select component to select value from options. ### The dropdown is closed when click `dropdownRender` area? See the [dropdownRender example](/components/select/#components-select-demo-custom-dropdown-menu). + +### Why sometime customize Option cause scroll break? + +Virtual scroll internal set item height as `32px`. You need to adjust `listItemHeight` when your option height is less and `listHeight` config list container height: + +```tsx + +``` + +注意:`listItemHeight` 和 `listHeight` 为内部属性,如无必要,请勿修改该值。 diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 6b5c900b97..319bd14273 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -81,3 +81,7 @@ Tree selection control. ### How to get parent node in onChange? We don't provide this since performance consideration. You can get by this way: + +### Why sometime customize Option cause scroll break? + +You can ref Select [FAQ](/components/select). diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index 246938186b..d5ba7340d8 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -82,3 +82,7 @@ title: TreeSelect ### onChange 时如何获得父节点信息? 从性能角度考虑,我们默认不透出父节点信息。你可以这样获得: + +### 自定义 Option 样式导致滚动异常怎么办? + +请参考 Select 的 [FAQ](/components/select)。