MarkHeader.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div
  3. class="
  4. tw-flex tw-gap-4 tw-justify-between tw-items-center
  5. header-container
  6. tw-px-1
  7. "
  8. v-if="store.setting"
  9. >
  10. <div class="tw-flex tw-gap-1">
  11. <div>
  12. 编号<span class="highlight-text">{{
  13. store.currentTask?.examNumber
  14. }}</span>
  15. </div>
  16. </div>
  17. <ZoomPaper :store="store" />
  18. <div
  19. class="tw-flex tw-place-items-center tw-cursor-pointer"
  20. @click="closeWindow"
  21. >
  22. <PoweroffOutlined class="icon-font icon-with-text" />关闭
  23. </div>
  24. </div>
  25. </template>
  26. <script setup lang="ts">
  27. import { store } from "../store";
  28. import { PoweroffOutlined } from "@ant-design/icons-vue";
  29. import ZoomPaper from "@/components/ZoomPaper.vue";
  30. const closeWindow = async () => {
  31. window.close();
  32. };
  33. </script>
  34. <style scoped>
  35. .header-container {
  36. position: relative;
  37. font-size: 16px;
  38. height: 40px;
  39. background-color: #5d6d7d;
  40. color: white;
  41. }
  42. .highlight-text {
  43. color: #ffe400;
  44. }
  45. .icon-font {
  46. display: block;
  47. }
  48. .icon-with-text {
  49. font-size: 18px;
  50. line-height: 18px;
  51. }
  52. </style>