Skip to content

Commit

Permalink
fix(date-picker): menu's quarter text isn't same having `type="quarte…
Browse files Browse the repository at this point in the history
…rrange"` and `type="quarter"`, closes #3217
  • Loading branch information
07akioni committed Jul 2, 2022
1 parent 04960e9 commit dd5fa45
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Fix `n-data-table` doesn't show `summary` row in virtual scroll mode, closes [#3202](https://github.com/TuSimple/naive-ui/issues/3202).
- Fix `n-cascader`'s filter menu doesn't show option path, closes [#3220](https://github.com/TuSimple/naive-ui/issues/3220).
- Fix `n-cascader`'s `filter` prop may not get correct `path`.
- Fix `n-date-picker` menu's quarter text isn't same having `type="quarterrange"` and `type="quarter"`, closes [#3217](https://github.com/TuSimple/naive-ui/issues/3217).

## 2.30.8

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- 修复 `n-data-table` 在虚拟滚动模式下 `summary` 行不显示,关闭 [#3202](https://github.com/TuSimple/naive-ui/issues/3202)
- 修复 `n-cascader` 的搜索菜单没有显示节点路径,关闭 [#3220](https://github.com/TuSimple/naive-ui/issues/3220)
- 修复 `n-cascader``filter` 属性接收到的 `path` 可能有误
- 修复 `n-date-picker``type="quarterrange"``type="quarter"` 时菜单季度文案不一致,关闭 [#3217](https://github.com/TuSimple/naive-ui/issues/3217)

## 2.30.8

Expand Down
2 changes: 1 addition & 1 deletion src/date-picker/src/panel/month.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineComponent({
case 'month':
return item.dateObject.month + 1
case 'quarter':
return `Q ${item.dateObject.quarter}`
return `Q${item.dateObject.quarter}`
}
}
const { useAsQuickJump } = props
Expand Down
2 changes: 1 addition & 1 deletion src/date-picker/src/panel/monthrange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default defineComponent({
{item.type === 'month'
? item.dateObject.month + 1
: item.type === 'quarter'
? item.dateObject.quarter
? `Q${item.dateObject.quarter}`
: item.dateObject.year}
</div>
)
Expand Down

0 comments on commit dd5fa45

Please sign in to comment.