fix(select): fallback-option prop's type, closes #1327

This commit is contained in:
07akioni 2021-10-12 00:01:07 +08:00
parent c339db752b
commit cf61b67789
3 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- Fix `n-select`'s `fallback-option` prop's type, closes [#1327](https://github.com/TuSimple/naive-ui/issues/1327).
## 2.19.6 (2021-10-10)
### Fixes

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- 修复 `n-select` `fallback-option` 属性类型,关闭 [#1327](https://github.com/TuSimple/naive-ui/issues/1327)
## 2.19.6 (2021-10-10)
### Fixes

View File

@ -108,7 +108,7 @@ const selectProps = {
},
fallbackOption: {
type: [Function, Boolean] as PropType<
(value: string | number) => SelectBaseOption | false
((value: string | number) => SelectBaseOption) | false
>,
default: () => (value: string | number) => ({
label: String(value),