46 lines
1.3 KiB
PHP
Executable File
46 lines
1.3 KiB
PHP
Executable File
<v-shimmer-image <?php echo e($attributes); ?>>
|
|
<div <?php echo e($attributes->merge(['class' => 'shimmer bg-neutral-100'])); ?>></div>
|
|
</v-shimmer-image>
|
|
|
|
<?php if (! $__env->hasRenderedOnce('64e34f58-e15e-4d49-a238-e25b825c841d')): $__env->markAsRenderedOnce('64e34f58-e15e-4d49-a238-e25b825c841d');
|
|
$__env->startPush('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>
|
|
<?php $__env->stopPush(); endif; ?>
|
|
<?php /**PATH /var/www/html/packages/Webkul/Admin/src/Resources/views/components/shimmer/image/index.blade.php ENDPATH**/ ?>
|