<template>
    <ie-page>
        <college-list custom-item-click @item-click="handleItemClick">
            <template #top>
                <ie-navbar :title="title"/>
            </template>
        </college-list>
    </ie-page>
</template>

<script setup lang="ts">
import {Transfer} from "@/types";
import {useTransferPage} from "@/hooks/useTransferPage";
import CollegeList from "@/pagesOther/pages/university/index/components/college-list.vue";
import {University} from "@/types/university";

const {prevData, transferBack} = useTransferPage<Transfer.UniversityPickerPageOptions, {}>()
const title = computed(() => prevData.value.title || '选择院校')

const handleItemClick = (u: University) => {
    transferBack(u)
}
</script>

<style lang="scss">

</style>
