refactor(components): [notification] use type-based definitions#23445
Conversation
📝 WalkthroughWalkthroughIntroduces explicit Notification prop/interface types and position literals, deprecates the legacy public prop alias, updates the Vue component to use typed props with defaults (including a default close icon), updates notify typings to use the new position type, and removes a console.warn assertion from a test. 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. ✨ Finishing touches
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 |
|
Hello Reviewer, regarding the content about |
It might be needed in the future, but I don’t think it’s necessary for now. |
Yes, refactoring the code does not include this part of the modification. |
|
Hello Reviewer, I'm encountering a test failure after refactoring from The test expects Should I:
Looking forward to your guidance. Thanks! |
commit: |
We can first comment out the assertion instead of deleting it.
See #23458 |
Got it. I've commented out this section of code. tks. |
|
🧪 Playground Preview: https://element-plus.run/?pr=23445 |
|
@E66Crisp Thanks for your contribution! ❤️ |

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