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

<script setup name="PaperByIntelligent">
import PaperIntelligentFull from "@/views/dz/papers/components/paper-intelligent-full.vue";
import PaperIntelligentExact from "@/views/dz/papers/components/paper-intelligent-exact.vue";

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

<style scoped>

</style>