Skip to content

Commit

Permalink
fix(affix): position's default value is not consistent with docs (#…
Browse files Browse the repository at this point in the history
…5148)

* Update Affix.tsx

* Update CHANGELOG.zh-CN.md
  • Loading branch information
devilmengcry authored Dec 19, 2023
1 parent 856ee9d commit a61b325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@

- `n-input``suffix` 移动到 `loading` 之后,关闭 [#4685](https://github.com/tusen-ai/naive-ui/issues/4685)
- 修复 `n-log``silent` 拼写问题,关闭 [#4875](https://github.com/tusen-ai/naive-ui/issues/4875)
- 修复 `n-affix``position` 默认值与文档一不致

### Fixes

Expand Down
4 changes: 2 additions & 2 deletions src/affix/src/Affix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const affixProps = {
triggerTop: Number,
triggerBottom: Number,
position: {
type: String as PropType<'fix' | 'absolute'>,
default: 'fix'
type: String as PropType<'fixed' | 'absolute'>,
default: 'fixed'
},
// deprecated
offsetTop: {
Expand Down

0 comments on commit a61b325

Please sign in to comment.