Skip to content

Commit

Permalink
Merge 53ac246 into 70f947c
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Mar 13, 2023
2 parents 70f947c + 53ac246 commit ab909dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/pro/search/docs/Api.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ SelectSearchFieldConfig
| `separator` | 多选分隔符 | `string` | `'|'` | - | - |
| `showSelectAll` | 是否支持全选 | `boolean` | `true` | - | - |
| `virtual` | 是否支持虚拟滚动 | `boolean` | `false` | - | 默认不支持 |
| `overlayItemWidth` | 选项宽度 | `number` | - | - | - |
| `onSearch` | 搜索回调函数 | `(searchValue: string) => void | ((searchValue: string) => void)[]` | - | - | 在触发搜索值改变时执行 |

> 注:使用 `Ctrl + Enter` 在多选下切换面板中选项选中状态
Expand Down
1 change: 1 addition & 0 deletions packages/pro/search/src/panel/SelectPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export default defineComponent({
getKey: 'key',
labelKey: 'label',
selectedKeys: props.value,
virtual: props.virtual,
onOptionClick: handleOptionClick,
'onUpdate:activeValue': setActiveValue,
}
Expand Down
1 change: 0 additions & 1 deletion packages/pro/search/src/types/searchFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export interface SelectSearchField extends SearchFieldBase<VKey | VKey[]> {
virtual?: boolean
searchFn?: (data: SelectPanelData, searchText?: string) => boolean
onSearch?: MaybeArray<(searchValue: string) => void>
overlayItemWidth?: number
}
}

Expand Down

0 comments on commit ab909dc

Please sign in to comment.