<template>
	<!--   title    -->
	<view>{{data.ksName === null ? '': data.ksName}}</view>
	<!--    main    -->
	<view>总数：{{data.errorCount === null ? 0:data.errorCount}}</view>
	<view>时间：
		{{data.answerStartTime === null ? '' : data.answerStartTime}}
		-
		{{data.answerEndTime === null ? '' : data.answerEndTime}}
	</view>
	<!--   button   -->
	<button :disabled="data.seeAnswerFlag === 0" @click="btnClick">
		查看答案
	</button>
</template>

<script setup>
	const props = defineProps({
		data: {
			type: Object,
			require: true
		}
	})
	const emits = defineEmits(['btn-click'])

	function btnClick() {
		emits('btn-click', props.data);
	}
</script>

<style>

</style>