docs: updating the `dropdownRender` description and jumps in the FAQ for Select (#7313)

pull/7335/head
Carl Chen 2024-01-30 12:05:20 +08:00 committed by GitHub
parent 7afb7ce465
commit 0cbf3ca354
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ Select component to select value from options.
### The dropdown is closed when click `dropdownRender` area?
Dropdown menu will be closed if click `dropdownRender` area, you can prevent it by wrapping `@mousedown.prevent` See the [dropdownRender example](/components/select/#components-select-demo-custom-dropdown).
Dropdown menu will be closed if click `dropdownRender` area, you can prevent the default behavior of a click event, See the [dropdownRender example](#components-select-demo-custom-dropdown-menu).
### Why is `placeholder` not displayed?

View File

@ -117,7 +117,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA
### 点击 `dropdownRender` 里的内容浮层关闭怎么办?
自定义内容点击时会关闭浮层,如果不喜欢关闭,可以添加 `@mousedown.prevent` 进行阻止。 看下 [dropdownRender 例子](/components/select-cn/#components-select-demo-custom-dropdown) 里的说明。
自定义内容点击时会关闭浮层,如果不喜欢关闭,可以通过取消点击事件的默认行为进行阻止。 看下 [dropdownRender 例子](#components-select-demo-custom-dropdown-menu) 里的说明。
### 为什么 `placeholder` 不显示