123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <div
- class="
- tw-flex tw-gap-4 tw-justify-between tw-items-center
- header-container
- tw-px-1
- "
- v-if="store.setting"
- >
- <div class="tw-flex tw-gap-1">
- <div>
- 编号<span class="highlight-text">{{
- store.currentTask?.examNumber
- }}</span>
- </div>
- </div>
- <ZoomPaper :store="store" />
- <div
- class="tw-flex tw-place-items-center tw-cursor-pointer"
- @click="closeWindow"
- >
- <PoweroffOutlined class="icon-font icon-with-text" />关闭
- </div>
- </div>
- </template>
- <script setup lang="ts">
- import { store } from "../store";
- import { PoweroffOutlined } from "@ant-design/icons-vue";
- import ZoomPaper from "@/components/ZoomPaper.vue";
- const closeWindow = async () => {
- window.close();
- };
- </script>
- <style scoped>
- .header-container {
- position: relative;
- font-size: 16px;
- height: 40px;
- background-color: #5d6d7d;
- color: white;
- }
- .highlight-text {
- color: #ffe400;
- }
- .icon-font {
- display: block;
- }
- .icon-with-text {
- font-size: 18px;
- line-height: 18px;
- }
- </style>
|