<template>
  <div class="fx-row fx-bet-cen pointer">
    <i class="el-icon-warning-outline f24 f-999" @click="handleCorrect"></i>
    <span class="ml3" @click="handleCorrect">纠错</span>
    <correct-question-dialog ref="dialog"></correct-question-dialog>
  </div>
</template>

<script>
import CorrectQuestionDialog from '@/components/MxPaper/plus/correct-question-dialog'
import questionMixin from '../mx-question-mixin'

export default {
  mixins: [questionMixin],
  name: 'plus-question-correct',
  components: { CorrectQuestionDialog },
  methods: {
    handleCorrect() {
      console.log('called handle correct to open dialog')
      this.$refs.dialog.open(this.question.questionId)
    }
  }
}
</script>

<style scoped>

</style>
