index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <Topic :topics="list"></Topic>
  3. </template>
  4. <script setup>
  5. import Topic from "@/components/Topic/Topic.vue";
  6. const list = {
  7. ques: [
  8. {
  9. id: 1,
  10. title: '测试题目',
  11. questions: [
  12. { label: "测试1", value: 1 },
  13. { label: "测试2", value: 2 },
  14. { label: "测试3", value: 3 },
  15. { label: "测试4", value: 4 },
  16. { label: "测试5", value: 5 },
  17. ],
  18. anslist: 2,
  19. },
  20. {
  21. id: 2,
  22. title: '测试题目',
  23. questions: [
  24. { label: "测试1", value: 1 },
  25. { label: "测试2", value: 2 },
  26. { label: "测试3", value: 3 },
  27. { label: "测试4", value: 4 },
  28. { label: "测试5", value: 5 },
  29. ],
  30. anslist: [2, 4],
  31. },
  32. {
  33. id: 3,
  34. title: '测试题目',
  35. questions: [
  36. { label: "测试1", value: 1 },
  37. { label: "测试2", value: 2 },
  38. { label: "测试3", value: 3 },
  39. { label: "测试4", value: 4 },
  40. { label: "测试5", value: 5 },
  41. ],
  42. anslist: [2, 3],
  43. },
  44. ],
  45. };
  46. </script>
  47. <style></style>