mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(select): fallback-option
prop's type, closes #1327
This commit is contained in:
parent
c339db752b
commit
cf61b67789
@ -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
|
||||
|
@ -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
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user