SnapshotCluster.vue 1.05 KB
<template>
    <a-menu v-model:selectedKeys="currentMenu" mode="horizontal">
        <a-menu-item :key="'试乘记录'">
            试乘记录
        </a-menu-item>
        <a-menu-item :key="'接待记录'">
            接待记录
        </a-menu-item>
    </a-menu>
    <div v-if="currentMenu[0] === '试乘记录'">
        <SnapshotRecord></SnapshotRecord>
    </div>
    <div v-if="currentMenu[0] === '接待记录'">
        <ClusterResult></ClusterResult>
    </div>
</template>

<script>
import {ref} from 'vue'
import SnapshotRecord from './SnapshotRecord/SnapshotRecord.vue'
import ClusterResult from './ClusterResult/ClusterResult.vue'

export default {
    components: {
        SnapshotRecord,
        ClusterResult,
    },
    setup() {
        // scalar
        const currentMenu = ref(['试乘记录'])
        // sequence
        // mapping
        // function

        return {
            // scalar
            currentMenu,
            // sequence
            // mapping
            // function
        }
    }

}
</script>

<style scoped>

</style>