@xuda.io/xuda-widget-plugin-xuda-drive 1.0.38 → 1.0.40
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 +8 -15
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -593,7 +593,7 @@ export async function viewer(fields, e) {
|
|
|
593
593
|
</div>
|
|
594
594
|
|
|
595
595
|
<!-- Tabs -->
|
|
596
|
-
<div ref="dropZoneRef"
|
|
596
|
+
<div ref="dropZoneRef" class="flex-1 overflow-auto size-full relative">
|
|
597
597
|
<div v-if="isOverDropZone" class="absolute inset-0 z-10 px-2 py-2 animate">
|
|
598
598
|
<div class="size-full flex flex-col justify-between items-center !border-black border-2 rounded-2xl bg-black/20">
|
|
599
599
|
<div></div>
|
|
@@ -685,11 +685,9 @@ export async function viewer(fields, e) {
|
|
|
685
685
|
<!-- Slides -->
|
|
686
686
|
<template v-for="file in files" hidden>
|
|
687
687
|
<div class="swiper-slide">
|
|
688
|
-
<div class="flex flex-col rounded shadow overflow-hidden">
|
|
689
688
|
<a data-fslightbox="gallery" :href="file.access_link" class="flex-shrink-0">
|
|
690
689
|
<img class="h-full w-full object-cover" :src="file.access_link" :alt="file.name" />
|
|
691
690
|
</a>
|
|
692
|
-
</div>
|
|
693
691
|
</div>
|
|
694
692
|
</template>
|
|
695
693
|
</div>
|
|
@@ -945,7 +943,7 @@ export async function viewer(fields, e) {
|
|
|
945
943
|
search_string: "",
|
|
946
944
|
sort_by: fields.sort_by || "date",
|
|
947
945
|
sort_dir: fields.sort_dir || "desc",
|
|
948
|
-
...(fields.filter_tags
|
|
946
|
+
...(fields.filter_tags?.length ? { tags: fields.filter_tags } : {})
|
|
949
947
|
// ...filter_tags
|
|
950
948
|
},
|
|
951
949
|
limit: 10,
|
|
@@ -1101,9 +1099,9 @@ export async function viewer(fields, e) {
|
|
|
1101
1099
|
},
|
|
1102
1100
|
mounted() {
|
|
1103
1101
|
var onDrop = (files) => {
|
|
1102
|
+
if (this.view === "swiper") return;
|
|
1104
1103
|
this.uploadModal = true;
|
|
1105
|
-
this.addFiles(files);
|
|
1106
|
-
// params.$refs.ImageUploader?.$refs?.pond?.addFiles(files);
|
|
1104
|
+
this.pond.addFiles(files);
|
|
1107
1105
|
};
|
|
1108
1106
|
|
|
1109
1107
|
const { isOverDropZone } = VueUse.useDropZone(this.$refs.dropZoneRef, {
|
|
@@ -1161,7 +1159,10 @@ export async function viewer(fields, e) {
|
|
|
1161
1159
|
this.swiper = new Swiper(this.$refs["swiper-container"], {
|
|
1162
1160
|
loop: true,
|
|
1163
1161
|
slidesPerView: 1,
|
|
1164
|
-
spaceBetween: 20
|
|
1162
|
+
spaceBetween: 20,
|
|
1163
|
+
observer: true,
|
|
1164
|
+
observeParents: true,
|
|
1165
|
+
paginationClickable: true
|
|
1165
1166
|
});
|
|
1166
1167
|
|
|
1167
1168
|
this.swiper.on("slideChange", (event) => {
|
|
@@ -1183,14 +1184,6 @@ export async function viewer(fields, e) {
|
|
|
1183
1184
|
this.$nextTick(() => {
|
|
1184
1185
|
refreshFsLightbox();
|
|
1185
1186
|
this.swiper?.update?.();
|
|
1186
|
-
|
|
1187
|
-
// this.swiper;
|
|
1188
|
-
// debugger;
|
|
1189
|
-
// this.swiper = new Swiper(this.$refs["swiper-container"], {
|
|
1190
|
-
// loop: true,
|
|
1191
|
-
// slidesPerView: 1,
|
|
1192
|
-
// spaceBetween: 20
|
|
1193
|
-
// });
|
|
1194
1187
|
});
|
|
1195
1188
|
}
|
|
1196
1189
|
},
|