2022-12-29 10:49:19 +08:00
|
|
|
<template>
|
2023-01-31 10:37:06 +08:00
|
|
|
<va-card>
|
2023-01-12 17:37:54 +08:00
|
|
|
<va-card-content>
|
2022-12-29 10:49:19 +08:00
|
|
|
<va-button @click="showModal">FILE</va-button>
|
2023-01-12 17:37:54 +08:00
|
|
|
<p>X: {{ channelStore.xAxisSelected.name }} Y: {{ channelStore.yAxisSelected.name }}</p>
|
|
|
|
|
<va-list class="py-2" fit>
|
|
|
|
|
<va-list-label> </va-list-label>
|
|
|
|
|
<template v-for="(file, i) in selectedFiles" :key="'item' + file.id">
|
|
|
|
|
<va-list-item>
|
|
|
|
|
<va-list-item-section>
|
|
|
|
|
<va-list-item-label>
|
|
|
|
|
{{ file.name }}
|
|
|
|
|
</va-list-item-label>
|
|
|
|
|
</va-list-item-section>
|
|
|
|
|
</va-list-item>
|
|
|
|
|
|
|
|
|
|
<va-list-separator v-if="i < selectedFiles.length - 1" :key="'separator' + i" class="my-1" fit />
|
|
|
|
|
</template>
|
|
|
|
|
</va-list>
|
2022-12-29 10:49:19 +08:00
|
|
|
<Suspense>
|
2023-02-01 11:19:57 +08:00
|
|
|
<FileSlide ref="file_modal_ref"></FileSlide>
|
2022-12-29 10:49:19 +08:00
|
|
|
</Suspense>
|
2023-01-12 17:37:54 +08:00
|
|
|
</va-card-content>
|
2022-12-29 10:49:19 +08:00
|
|
|
</va-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2023-01-12 17:37:54 +08:00
|
|
|
import { ref, reactive } from 'vue'
|
2022-12-30 15:17:43 +08:00
|
|
|
import { useChannelStore } from '@/stores/data-analysis/channel'
|
|
|
|
|
import { useFileViewStore } from '@/stores/data-analysis/file-view'
|
2023-02-01 11:19:57 +08:00
|
|
|
import FileSlide from './FileSlider.vue'
|
2022-12-30 15:17:43 +08:00
|
|
|
|
2023-01-12 17:37:54 +08:00
|
|
|
const channelStore = useChannelStore()
|
|
|
|
|
const fileViewStore = useFileViewStore()
|
2023-02-03 11:07:58 +08:00
|
|
|
const selectedFiles = reactive(fileViewStore.selectedFiles)
|
2022-12-29 10:49:19 +08:00
|
|
|
|
2023-01-04 10:15:11 +08:00
|
|
|
/* File Modal Handling */
|
2023-03-07 16:48:30 +08:00
|
|
|
const file_modal_ref = ref<InstanceType<typeof FileSlide> | null>(null)
|
2022-12-29 10:49:19 +08:00
|
|
|
const showModal = function () {
|
|
|
|
|
file_modal_ref.value?.showModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defineExpose({ file_modal_ref, showModal })
|
|
|
|
|
</script>
|