2022-12-29 10:49:19 +08:00
|
|
|
<template>
|
|
|
|
|
<va-card class="">
|
|
|
|
|
<div class="h-200px">
|
|
|
|
|
<va-button @click="showModal">FILE</va-button>
|
2022-12-30 15:20:11 +08:00
|
|
|
<p>Meta: {{ fileView.filesSelected }}</p>
|
|
|
|
|
<p>X: {{ channel.xAxis }}</p>
|
|
|
|
|
<p>Y: {{ channel.yAxis }}</p>
|
2022-12-29 10:49:19 +08:00
|
|
|
<Suspense>
|
|
|
|
|
<FileModal ref="file_modal_ref"></FileModal>
|
|
|
|
|
</Suspense>
|
|
|
|
|
</div>
|
|
|
|
|
</va-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref } 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-01-04 10:15:11 +08:00
|
|
|
import FileModal from '@/components/data-analysis/FileModal.vue'
|
2022-12-30 15:17:43 +08:00
|
|
|
|
|
|
|
|
const channel = useChannelStore()
|
|
|
|
|
const fileView = useFileViewStore()
|
2022-12-29 10:49:19 +08:00
|
|
|
|
2023-01-04 10:15:11 +08:00
|
|
|
/* File Modal Handling */
|
2022-12-29 10:49:19 +08:00
|
|
|
let file_modal_ref = ref<InstanceType<typeof FileModal> | null>(null)
|
|
|
|
|
const showModal = function () {
|
|
|
|
|
file_modal_ref.value?.showModal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defineExpose({ file_modal_ref, showModal })
|
|
|
|
|
</script>
|