index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <!-- 匹配题型 -->
  3. <div class="correct">
  4. <div class="dialogue_main">
  5. <component
  6. :cur="cur"
  7. :is="getViewCom"
  8. :queIndex="queIndex"
  9. :watchIndex="watchIndex"
  10. :uiType="uiType"
  11. :handleChildSrcList="handleChildSrcList"
  12. :bookAnswerShowFlag="bookAnswerShowFlag"
  13. :bookExamAnswer="bookExamAnswer"
  14. ref="bookChildren"
  15. />
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import TextImagematch from "./TextImagematchAnswer"
  21. export default {
  22. name: "Match",
  23. props: [
  24. "moduleType",
  25. "cur",
  26. "queIndex",
  27. "watchIndex",
  28. "uiType",
  29. "handleChildSrcList",
  30. "bookAnswerShowFlag",
  31. "bookExamAnswer"
  32. ],
  33. components: {
  34. TextImagematch
  35. },
  36. created() {},
  37. mounted() {
  38. console.log(this.cur);
  39. },
  40. computed: {
  41. getViewCom() {
  42. switch (this.moduleType) {
  43. case "01":
  44. return TextImagematch;
  45. case "02":
  46. return TextImagematch;
  47. case "03":
  48. return TextImagematch;
  49. case "04":
  50. return TextImagematch;
  51. }
  52. },
  53. },
  54. methods:{
  55. practiceTip () {
  56. return this.$refs.bookChildren.practiceJudge()
  57. }
  58. }
  59. };
  60. </script>
  61. <style scoped>
  62. .dialogue_main {
  63. height: 100%;
  64. }
  65. .correct {
  66. height: 100%;
  67. }
  68. .leftArrows {
  69. margin-top: 40vh;
  70. float: left;
  71. }
  72. .rightArrows {
  73. margin-top: 40vh;
  74. float: right;
  75. }
  76. </style>