Skip to content

fix: 校正行程日历月份索引 - #78

Merged
tuoro merged 1 commit into
mainfrom
fix/trips-calendar-month-basis-v023
Aug 3, 2026
Merged

fix: 校正行程日历月份索引#78
tuoro merged 1 commit into
mainfrom
fix/trips-calendar-month-basis-v023

Conversation

@tuoro

@tuoro tuoro commented Aug 3, 2026

Copy link
Copy Markdown
Owner

问题

PrimeVue 4.5.4 的月份切换事件返回 1-12,日期插槽返回 0-11;年份切换事件在不同交互路径中甚至会返回不同月份基数。原实现共用运行时猜测状态,可能造成日历查询和日期高亮偏移一个月。

修复

  • 月份切换事件固定转换为 0 基索引
  • 日期插槽保持 0 基索引
  • 年份切换只更新年份并保留当前可见月份
  • 删除 calendarMonthBase 自动猜测状态
  • 增加月份边界和异常值测试
  • 稳定版本更新到 v0.2.3

验证

  • npm run lint:ci
  • npm run test:run(10 个文件,58 项测试)
  • npm run build
  • npm audit --audit-level=high(0 漏洞)
  • go vet ./...

@tuoro
tuoro merged commit 52e0feb into main Aug 3, 2026
4 of 6 checks passed
@tuoro
tuoro deleted the fix/trips-calendar-month-basis-v023 branch August 3, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant