forked from bagisto/bagisto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bagisto#7707 from jitendra-webkul/2.0.0
Changed flash vue component name, Category header fixed
- Loading branch information
Showing
9 changed files
with
105 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
packages/Webkul/Shop/src/Resources/views/components/shimmer/image/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{{-- <x-shop::shimmer.image | ||
class="rounded-sm bg-[#F5F5F5] group-hover:scale-105 transition-all duration-300 w-[291px] h-[300px]" | ||
width="291" | ||
height="300" | ||
::src="product.base_image.medium_image_url" | ||
></x-shop::shimmer.image> --}} | ||
|
||
|
||
<v-shimmer-image {{ $attributes }}> | ||
<div {{ $attributes->merge(['class' => 'shimmer']) }}> | ||
</div> | ||
</v-shimmer-image> | ||
|
||
@pushOnce('scripts') | ||
<script type="text/x-template" id="v-shimmer-image-template"> | ||
<div | ||
class="shimmer" | ||
v-bind="$attrs" | ||
v-show="isLoading" | ||
> | ||
</div> | ||
|
||
<img | ||
v-bind="$attrs" | ||
:src="src" | ||
@load="onLoad" | ||
v-show="! isLoading" | ||
> | ||
</script> | ||
|
||
<script type="module"> | ||
app.component('v-shimmer-image', { | ||
template: '#v-shimmer-image-template', | ||
props: ['src'], | ||
data() { | ||
return { | ||
isLoading: true, | ||
}; | ||
}, | ||
methods: { | ||
onLoad() { | ||
this.isLoading = false; | ||
}, | ||
}, | ||
}); | ||
</script> | ||
@endPushOnce |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters