24 lines
586 B
Vue
24 lines
586 B
Vue
|
|
<template>
|
||
|
|
<va-card class="">
|
||
|
|
<div class="h-200px">
|
||
|
|
<va-button @click="showModal">FILE</va-button>
|
||
|
|
<Suspense>
|
||
|
|
<FileModal ref="file_modal_ref"></FileModal>
|
||
|
|
</Suspense>
|
||
|
|
</div>
|
||
|
|
</va-card>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref } from 'vue'
|
||
|
|
import FileModal from '@/components/data-analysis/FileModal.vue'
|
||
|
|
|
||
|
|
// file modal control
|
||
|
|
let file_modal_ref = ref<InstanceType<typeof FileModal> | null>(null)
|
||
|
|
const showModal = function () {
|
||
|
|
file_modal_ref.value?.showModal()
|
||
|
|
}
|
||
|
|
|
||
|
|
defineExpose({ file_modal_ref, showModal })
|
||
|
|
</script>
|