-
Notifications
You must be signed in to change notification settings - Fork 299
expose <img> element on nuxtImg through defineExpose #1834
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
base: main
Are you sure you want to change the base?
Conversation
commit: |
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #1834 +/- ##
==========================================
+ Coverage 53.47% 53.48% +0.01%
==========================================
Files 79 79
Lines 3755 3756 +1
Branches 377 377
==========================================
+ Hits 2008 2009 +1
Misses 1716 1716
Partials 31 31 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
1315a11
to
0c48f64
Compare
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.
what do you want to do with the image element?
@danielroe In my specific case I want to rotate the image in realtime. The My solution for now is using () => {
if (!self.value) return;
const img = self.value.querySelector('img');
if (!img) return;
img.style.setProperty('--background-rotation', `${rotate}deg`);
} |
07e97d7
to
5d5e4bc
Compare
Co-authored-by: Daniel Roe <[email protected]>
5d5e4bc
to
cb76488
Compare
Hey! Any reason not to approve this one? |
@LeonardoRick is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
π Linked issue
β Type of change
π Description
Expose the image element as its currently impossible to access it without a
querySelector