refactor(components): [calendar] use type-based definitions#23419
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughReplaced runtime ExtractPropTypes-based exported prop aliases with explicit TypeScript interfaces for Calendar, DateTable, and SelectController; updated .vue components to use defineProps() (withDefaults where applicable) and removed ExtractPropTypes imports while keeping ExtractPublicPropTypes and adding deprecation notes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/components/calendar/src/select-controller.ts`:
- Around line 11-14: SelectControllerProps currently declares date as optional
but the runtime prop validation (selectControllerProps) marks it required;
update the interface so date is non-optional (remove the ? on date in
SelectControllerProps) to match the runtime contract and avoid undefined types,
and then check any callers of SelectControllerProps/SelectController (or
functions referencing props.date) to ensure they supply a Dayjs instance to
satisfy the new type.
commit: |
|
🧪 Playground Preview: https://element-plus.run/?pr=23419 |
|
@zhongli-kira Thanks for your contribution! ❤️ |

Please make sure these boxes are checked before submitting your PR, thank you!
devbranch.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.