<script setup lang="ts">
import ConfigViewTemplate from '../../ConfigViewTemplate.vue'

const role = inject('role') as string

defineProps<{ node: any }>()
</script>

<template>
  <ConfigViewTemplate :node="node">
    <el-form-item :label="role === 'student' ? '我的答案' : '学生答案'">
      {{ node.data.student?.time_name }}
    </el-form-item>
    <el-form-item label="正确答案">
      {{ node.data.teacher?.time_name }}
    </el-form-item>
  </ConfigViewTemplate>
</template>
