<template>
  <div class="fx-row">
    <template v-if="allowAnswer">
      <el-button :type="useBoardTextStyle?'primary':''" @click="setBoardTextStyle">
        <i class="el-icon-edit-outline"></i>手动答题
      </el-button>
      <el-button :type="useBoardImageStyle?'primary':''" @click="setBoardImageStyle">
        <i class="el-icon-camera-solid"></i>拍照上传
      </el-button>
    </template>
    <template v-else>
      <el-button :type="useBoardParseStyle?'primary':''" @click="setParseDefaultStyle">
        解析
      </el-button>
      <el-button v-if="allowScore&&!question._isObjective" :type="useBoardScoreStyle?'primary':''" @click="setParseScoreStyle">
        打分
      </el-button>
    </template>
  </div>
</template>

<script>
import questionMixin from '../mx-question-mixin'

export default {
  mixins: [questionMixin],
  name: 'plus-question-toggle-buttons'
}
</script>

<style scoped>

</style>
