topic-collection.vue 873 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view class="page-content">
  3. <mx-nav-bar title="收藏夹"/>
  4. <mx-tabs-swiper :tabs="tabs" border>
  5. <template #试卷收藏>
  6. <paper-collection-list :subject-id="prevData.subjectId"/>
  7. </template>
  8. <template #试题收藏>
  9. <question-collection-list :subject-id="prevData.subjectId"/>
  10. </template>
  11. </mx-tabs-swiper>
  12. </view>
  13. </template>
  14. <script setup>
  15. import PaperCollectionList from "@/pages/topic-center/topic-collection/components/paper-collection-list.vue";
  16. import QuestionCollectionList from "@/pages/topic-center/topic-collection/components/question-collection-list.vue";
  17. import {useTransfer} from "@/hooks/useTransfer";
  18. const tabs = [{name: "试卷收藏"}, {name: "试题收藏"}]
  19. const {prevData} = useTransfer()
  20. </script>
  21. <style scoped>
  22. </style>