diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 6785ab53c..99fdce9fe 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -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 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 62c6b9a3a..775bff96c 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -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 diff --git a/src/select/src/Select.tsx b/src/select/src/Select.tsx index a10a8ded6..8e294aa14 100644 --- a/src/select/src/Select.tsx +++ b/src/select/src/Select.tsx @@ -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),