QuestionIndex.vue 608 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div class="container">
  3. {{ sectionChinese }}、{{ examQuestion.groupName }}({{
  4. examQuestion.groupOrder
  5. }}
  6. / {{ examQuestion.groupTotal }})
  7. </div>
  8. </template>
  9. <script>
  10. import { toChineseNumber } from "@/utils/util";
  11. export default {
  12. name: "QuestionIndex",
  13. props: {
  14. examQuestion: {
  15. type: Object,
  16. default() {
  17. return {};
  18. },
  19. },
  20. },
  21. computed: {
  22. sectionChinese() {
  23. return toChineseNumber(this.examQuestion.mainNumber);
  24. },
  25. },
  26. };
  27. </script>
  28. <style scoped>
  29. .container {
  30. font-size: 28px;
  31. padding-left: 10px;
  32. }
  33. </style>