<template>
  <el-input v-if="useBoardTextStyle" v-model="question._answer" type="textarea" :rows="6" placeholder="请输入内容"></el-input>
  <image-upload v-else-if="useBoardImageStyle" v-model="question._attachments" :type="uploadType"></image-upload>
</template>

<script>
import questionMixin from './mx-question-mixin'
import consts from '@/common/mx-const'
import PlusQuestionToggleBoardMode from '@/components/MxPaper/plus/plus-question-toggle-buttons'

export default {
  components: { PlusQuestionToggleBoardMode },
  mixins: [questionMixin],
  name: 'mx-question-board-answer',
  data() {
    return {
      uploadType: consts.enum.uploadType.answerResource
    }
  }
}
</script>

<style scoped>

</style>
