<template>
    <el-tabs type="border-card" @tab-change="handleTabChange">
        <el-tab-pane label="全量组卷">
            <paper-hand-full />
        </el-tab-pane>
        <el-tab-pane label="定向组卷">
            <paper-hand-exact v-if="exactVisited" />
        </el-tab-pane>
    </el-tabs>
</template>

<script setup name="PaperByHand">
import PaperHandFull from "@/views/dz/papers/components/paper-hand-full.vue";
import PaperHandExact from "@/views/dz/papers/components/paper-hand-exact.vue";

// 延迟加载，减少初次加载项
const exactVisited = ref(false)
const handleTabChange = () => exactVisited.value = true

</script>

<style scoped>

</style>