@xuda.io/xuda-widget-plugin-xuda-drive 1.0.18 → 1.0.20
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 +11 -5
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -600,7 +600,7 @@ export async function viewer(fields, e) {
|
|
|
600
600
|
<div class="mt-2 block truncate font-medium text-sm text-gray-900" v-text="file.name"></div>
|
|
601
601
|
<div class="flex items-center justify-between text-xs text-gray-500">
|
|
602
602
|
<div class="truncate" v-text="file.size"></div>
|
|
603
|
-
<div class="truncate" v-text="moment(file.date_created).format('
|
|
603
|
+
<div class="truncate" v-text="moment(file.date_created).format('lll')"></div>
|
|
604
604
|
</div>
|
|
605
605
|
</div>
|
|
606
606
|
<div v-if="view === 'list'" class="flex items-center justify-between py-2 px-4 hover:bg-neutral-100 transition-all">
|
|
@@ -616,7 +616,7 @@ export async function viewer(fields, e) {
|
|
|
616
616
|
</div>
|
|
617
617
|
<div class="flex items-center gap-2 truncate text-gray-500">
|
|
618
618
|
<div class="truncate" v-text="file.size"></div>
|
|
619
|
-
<div class="truncate" v-text="moment(file.date_created).format('
|
|
619
|
+
<div class="truncate" v-text="moment(file.date_created).format('lll')"></div>
|
|
620
620
|
</div>
|
|
621
621
|
</div>
|
|
622
622
|
</template>
|
|
@@ -769,9 +769,11 @@ export async function viewer(fields, e) {
|
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
-
e.$containerP.html(`<div id="drive-app" class="h-full" />`);
|
|
772
|
+
// e.$containerP.html(`<div id="drive-app" class="h-full" />`);
|
|
773
|
+
var containerId = crypto.randomUUID();
|
|
774
|
+
e.$containerP.attr("id", containerId);
|
|
773
775
|
|
|
774
|
-
createApp({
|
|
776
|
+
var app = createApp({
|
|
775
777
|
template: html,
|
|
776
778
|
components: {
|
|
777
779
|
VDropdown: FloatingVue.Dropdown,
|
|
@@ -1032,5 +1034,9 @@ export async function viewer(fields, e) {
|
|
|
1032
1034
|
this.refreshDirectory();
|
|
1033
1035
|
});
|
|
1034
1036
|
}
|
|
1035
|
-
})
|
|
1037
|
+
});
|
|
1038
|
+
|
|
1039
|
+
setTimeout(() => {
|
|
1040
|
+
app.mount("#" + containerId);
|
|
1041
|
+
}, 1000);
|
|
1036
1042
|
}
|