@xuda.io/xuda-widget-plugin-xuda-drive 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/runtime.mjs +26 -20
package/package.json
CHANGED
package/src/runtime.mjs
CHANGED
|
@@ -717,30 +717,36 @@ export async function viewer(fields, e) {
|
|
|
717
717
|
</template>
|
|
718
718
|
|
|
719
719
|
<div v-if="view === 'slider'" class="relative flex items-center justify-between py-4 px-4 flex-1 h-full overflow-hidden">
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
</button>
|
|
720
|
+
|
|
721
|
+
<div v-if="loadingSearch" class="grid place-items-center size-full">
|
|
722
|
+
<sepcial-loader class="size-8"/>
|
|
724
723
|
</div>
|
|
724
|
+
<template v-else>
|
|
725
|
+
<div v-if="options.navigation" class="absolute inset-y-0 left-6 z-10 flex items-center">
|
|
726
|
+
<button @click="options.direction === 'rtl' ? swiper.slideNext() : swiper.slidePrev()" class="bg-white -ml-2 lg:-ml-4 flex justify-center items-center w-10 h-10 rounded-full shadow focus:outline-none">
|
|
727
|
+
<svg viewBox="0 0 20 20" fill="currentColor" class="chevron-left w-6 h-6"><path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd"></path></svg>
|
|
728
|
+
</button>
|
|
729
|
+
</div>
|
|
725
730
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
<div class="swiper-container flex-1 w-full h-full" :dir="options.direction || 'ltr'" ref="swiper-container">
|
|
732
|
+
<div class="swiper-wrapper">
|
|
733
|
+
<!-- Slides -->
|
|
734
|
+
<template v-for="file in files" hidden>
|
|
735
|
+
<div class="swiper-slide">
|
|
736
|
+
<a data-fslightbox="gallery" :href="file.access_link" class="flex-shrink-0">
|
|
737
|
+
<img class="h-full w-full object-cover" :src="file.access_link" :alt="file.name" />
|
|
738
|
+
</a>
|
|
739
|
+
</div>
|
|
740
|
+
</template>
|
|
741
|
+
</div>
|
|
736
742
|
</div>
|
|
737
|
-
</div>
|
|
738
743
|
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
+
<div v-if="options.navigation" class="absolute inset-y-0 right-6 z-10 flex items-center">
|
|
745
|
+
<button @click="options.direction === 'rtl' ? swiper.slidePrev() : swiper.slideNext()" class="bg-white -mr-2 lg:-mr-4 flex justify-center items-center w-10 h-10 rounded-full shadow focus:outline-none">
|
|
746
|
+
<svg viewBox="0 0 20 20" fill="currentColor" class="chevron-right w-6 h-6"><path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"></path></svg>
|
|
747
|
+
</button>
|
|
748
|
+
</div>
|
|
749
|
+
</template>
|
|
744
750
|
</div>
|
|
745
751
|
</div>
|
|
746
752
|
|