mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-16 13:23:52 +02:00
43 lines
1.4 KiB
Vue
43 lines
1.4 KiB
Vue
<template>
|
|
<safe-dialog
|
|
class="x-dialog"
|
|
:visible="previousImagesDialogVisible"
|
|
:title="t('dialog.previous_images.header')"
|
|
width="800px"
|
|
append-to-body
|
|
@close="closeDialog">
|
|
<div>
|
|
<div v-for="image in previousImagesTable" :key="image.version" style="display: inline-block">
|
|
<el-popover
|
|
class="x-change-image-item"
|
|
placement="right"
|
|
width="500px"
|
|
trigger="click"
|
|
v-if="image.file">
|
|
<img slot="reference" v-lazy="image.file.url" class="x-link" />
|
|
<img
|
|
v-lazy="image.file.url"
|
|
class="x-link"
|
|
style="width: 500px; height: 375px"
|
|
@click="showFullscreenImageDialog(image.file.url)" />
|
|
</el-popover>
|
|
</div>
|
|
</div>
|
|
</safe-dialog>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { storeToRefs } from 'pinia';
|
|
import { useI18n } from 'vue-i18n-bridge';
|
|
import { useGalleryStore } from '../../stores';
|
|
|
|
const { t } = useI18n();
|
|
|
|
const { previousImagesDialogVisible, previousImagesTable } = storeToRefs(useGalleryStore());
|
|
const { showFullscreenImageDialog } = useGalleryStore();
|
|
|
|
function closeDialog() {
|
|
previousImagesDialogVisible.value = false;
|
|
}
|
|
</script>
|