Browse Source

docs: add stopPropagation description on select, #870

pointhalo 3 years ago
parent
commit
5d1b4413d3
2 changed files with 3 additions and 1 deletions
  1. 1 0
      content/input/select/index-en-US.md
  2. 2 1
      content/input/select/index.md

+ 1 - 0
content/input/select/index-en-US.md

@@ -1316,6 +1316,7 @@ import { Select, Checkbox } from '@douyinfe/semi-ui';
 | showClear | Whether to show the clear button | boolean | false |
 | size | Size, optional value `default` / `small` / `large` | string | 'default' |
 | spacing | Spacing between popup layer and trigger | number | 4 |
+| stopPropagation | Whether to prevent click events on the popup layer from bubbling | boolean | true | |
 | style | Inline Style | object |  |
 | suffix | An input helper rendered after | ReactNode |  |
 | triggerRender | Custom DOM of trigger | function |  |

+ 2 - 1
content/input/select/index.md

@@ -1325,7 +1325,7 @@ import { Select, Checkbox } from '@douyinfe/semi-ui';
 | onClear                  | 清除按钮的回调                                                                                                                                                                  | function                              |                                   |
 | onChangeWithObject       | 是否将选中项 option 的其他属性作为回调。设为 true 时,onChange 的入参类型会从 string 变为 object: { value, label, ...rest }                                                                               | boolean                               | false                             |
 | onDropdownVisibleChange  | 下拉菜单展开/收起时的回调                                                                                                                                                                                 | function(visible:boolean)             |                                   |
-| onListScroll             | 候选项列表滚动时的回调                                                                                                                                                                                 | function(e)             |                                   |
+| onListScroll             | 候选项列表滚动时的回调                                                                                                                                                                                 | function(e)             |                                    |
 | onSearch                 | input 输入框内容发生改变时回调函数                                                                                                                                                                        | function(sugInput:string)             |                                   |
 | onSelect                 | 被选中时的回调                                                                                                                                                                     | function(value, option)               |                                   |
 | onDeselect               | 取消选中时的回调,仅在多选时有效                                                                                                                                              | function(value, option)               |                                   |
@@ -1341,6 +1341,7 @@ import { Select, Checkbox } from '@douyinfe/semi-ui';
 | remote                   | 是否开启远程搜索,当 remote 为 true 时,input 内容改变后不会进行本地筛选匹配                                                                                                     | boolean                               | false                             |
 | size                     | 大小,可选值 `default`/`small`/`large`                                                                                                                                                                    | string                                | 'default'       |
 | style                    | 样式                                                                                                                                                                                                      | object                                |                 |
+| stopPropagation          | 是否阻止浮层上的点击事件冒泡 | boolean | true | |
 | suffix                   | 选择框的后缀标签                                                                                                                                                                  | ReactNode                             |                                   |
 | showClear                | 是否展示清除按钮                                                                                                                                                                 | boolean                               | false                             |
 | showArrow                | 是否展示下拉箭头                                                                                                                                                                | boolean                               | true                              |