@xuda.io/xuda-widget-plugin-xuda-drive 1.0.44 → 1.0.45
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/runtime.mjs +18 -18
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -675,7 +675,7 @@ export async function viewer(fields, e) {
|
|
|
675
675
|
|
|
676
676
|
<div v-if="view === 'slider'" class="relative flex items-center justify-between py-4 px-4 flex-1 h-full overflow-hidden">
|
|
677
677
|
<div class="absolute inset-y-0 left-6 z-10 flex items-center">
|
|
678
|
-
<button @click="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">
|
|
678
|
+
<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">
|
|
679
679
|
<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>
|
|
680
680
|
</button>
|
|
681
681
|
</div>
|
|
@@ -694,7 +694,7 @@ export async function viewer(fields, e) {
|
|
|
694
694
|
</div>
|
|
695
695
|
|
|
696
696
|
<div class="absolute inset-y-0 right-6 z-10 flex items-center">
|
|
697
|
-
<button @click="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">
|
|
697
|
+
<button @click="options.direction === 'ltr' ? 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">
|
|
698
698
|
<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>
|
|
699
699
|
</button>
|
|
700
700
|
</div>
|
|
@@ -1155,22 +1155,22 @@ export async function viewer(fields, e) {
|
|
|
1155
1155
|
handler(val) {
|
|
1156
1156
|
if (val === "slider") {
|
|
1157
1157
|
this.$nextTick(() => {
|
|
1158
|
-
setTimeout(() => {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}, 500);
|
|
1158
|
+
// setTimeout(() => {
|
|
1159
|
+
this.swiper = new Swiper(this.$refs["swiper-container"], {
|
|
1160
|
+
loop: true,
|
|
1161
|
+
slidesPerView: 1,
|
|
1162
|
+
spaceBetween: 20,
|
|
1163
|
+
observer: true,
|
|
1164
|
+
observeParents: true,
|
|
1165
|
+
...(fields?.direction === "rtl" ? { reverseDirection: true } : {})
|
|
1166
|
+
});
|
|
1167
|
+
|
|
1168
|
+
this.swiper.on("slideChange", (event) => {
|
|
1169
|
+
if (event.activeIndex >= 5 && !this.isEndOfList && !this.loadingSearch && !this.allLoading) {
|
|
1170
|
+
this.refreshDirectory(true);
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
// }, 500);
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
1176
|
|