<template>
  <qm-dialog
    v-if="store.isScoreBoardCollapsed"
    title="给分板"
    top="10%"
    fixedWidth
    width="380px"
    height="600px"
    customClass="board-track-dialog"
    @close="close"
  >
    <mark-board-track
      modal
      :isCheckAnswer="isCheckAnswer"
      @submit="$emit('submit')"
      @allZeroSubmit="$emit('allZeroSubmit')"
      @unselectiveSubmit="$emit('unselectiveSubmit')"
    />
  </qm-dialog>
</template>

<script setup lang="ts">
import QmDialog from "@/components/QmDialog.vue";
import { store } from "@/store/store";
import MarkBoardTrack from "./MarkBoardTrack.vue";

defineEmits(["submit", "allZeroSubmit", "unselectiveSubmit"]);
defineProps<{ isCheckAnswer?: boolean }>();

const close = () => {
  store.toggleScoreBoard();
};
</script>
