Conversation
修复日期面板中日期计算错误,将UTCDate+1改为直接使用UTCDate 调整日期表格单元格顶部间距从4px改为3px 修正基础用法示例中月份和年份面板的v-model绑定错误
WalkthroughUpdated v-model bindings in date-panel demo from Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| } | ||
| if (newVal) { | ||
| const newDate = modifyDate(newVal, newVal.getFullYear(), newVal.getMonth(), newVal.getUTCDate() + 1) | ||
| const newDate = modifyDate(newVal, newVal.getFullYear(), newVal.getMonth(), newVal.getUTCDate()) |
There was a problem hiding this comment.
这样在某些情况下会导致选中日期提前一天,可将getUTCDate 修改为getDate
PR
· 修复日期面板中日期计算错误,现有日期选择模式存在高亮日期比选择日期多一天的问题。
· 调整日期表格单元格顶部间距从4px改为3px,处理选中日期位置错位问题:


修复前
修复后
· 修正文档中基础用法示例中月份和年份面板的v-model绑定错误
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
Bug Fixes
Style
✏️ Tip: You can customize this high-level summary in your review settings.