fix(auto-complete): onSelect's type, closes #4617 (#4620)

Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
吉仔 2023-06-17 20:58:21 +08:00 committed by GitHub
parent 73082087d9
commit 30e050d355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- Fix `n-upload`'s `data` prop type can't include `Blob` element.
- Fix `n-select` allows option to be created with existed label, closes [#4703](https://github.com/tusen-ai/naive-ui/issues/4703)
- Fix `n-upload`'s `render-icon` prop's type.
- Fix `n-auto-complete`'s `onSelect` type, closes [#4617](https://github.com/tusen-ai/naive-ui/issues/4617).
- Fix `n-grid-item`'s suffix prop won't work with responsive config, closes [#4635](https://github.com/tusen-ai/naive-ui/issues/4635)
- Fix `n-tabs`'s `paneWrapperStyle` prop missing height after animation
- Fix `n-tree` should check all items instead of uncheck all if indeterminate checkbox is clicked, closes [#4941](https://github.com/tusen-ai/naive-ui/issues/4941).

View File

@ -13,6 +13,7 @@
- 修复 `n-upload``data` 属性类型不能包含 `Blob` 元素
- 修复 `n-select` 动态添加选项时,可以添加已存在的选项,关闭 [#4703](https://github.com/tusen-ai/naive-ui/issues/4703)
- 修复 `n-upload` `render-icon` 属性的类型
- 修复 `n-auto-complete``onSelect` 类型,关闭[#4617](https://github.com/tusen-ai/naive-ui/issues/4617)
- 修复 `n-grid-item` 属性 suffix 响应式设置不生效,关闭[#4635](https://github.com/tusen-ai/naive-ui/issues/4635)
- 修复 `n-tabs``paneWrapperStyle` 属性在动画后丢失高度
- 修复 `n-tree` 在级联选择下点击半选状态勾选框时应选中全部而不是清空已选,关闭 [#4941](https://github.com/tusen-ai/naive-ui/issues/4941)

View File

@ -15,7 +15,7 @@ AutoCompleteOption | AutoCompleteGroupOption | string
export type OnUpdateValue = (value: string & (string | null)) => void
export type OnUpdateImpl = (value: string | null) => void
export type OnSelect = (value: string | number) => void
export type OnSelect = (value: string & number) => void
export interface AutoCompleteInst {
focus: () => void