-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(image-preview): export onLoad and style for image slot #12740
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12740 +/- ##
==========================================
+ Coverage 89.81% 89.84% +0.02%
==========================================
Files 257 257
Lines 6835 6835
Branches 1660 1660
==========================================
+ Hits 6139 6141 +2
Misses 369 369
+ Partials 327 325 -2 ☔ View full report in Codecov by Sentry. |
@@ -302,7 +302,7 @@ imagePreviewRef.value?.swipeTo(1); | |||
| --- | --- | --- | | |||
| index | Custom index | _{ index: index of current image }_ | | |||
| cover | Custom content that covers the image preview | - | | |||
| image | Custom image content | _{ src: current image src }_ | | |||
| image | Custom image content | _{ src: current image src, onLoad: load image, style: current image style }_ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add an example to tell user when should they use the style
and onLoad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge this PR first, and feel free to open another PR for the example~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I've been feeling a bit unwell lately. It would be great if anyone is willing to complete this task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take care of yourself ❤️
The documentation has been added: #12751
close #12656