refactor(components): [image/image-viewer] use type-based definitions#23444
Conversation
📝 WalkthroughWalkthroughThe PR refactors props declarations for image-viewer and image components by introducing explicit TypeScript interfaces (ImageViewerProps, ImageProps) and new type aliases (ImageViewerCrossorigin, ImageCrossorigin). It replaces ExtractPropTypes with ExtractPublicPropTypes for public API exports and updates component files to use typed defineProps with withDefaults instead of the previous prop object pattern. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
commit: |
|
@snowbitx Thanks for your contribution! ❤️ |
|
🧪 Playground Preview: https://element-plus.run/?pr=23444 |

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