<!--多选题查看-->
<style>
  .v_multipleQuestion {
    width: 100%;
  }
</style>
<template>
  <div class="v_multipleQuestion">
    <table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
      <tbody v-for="(item,index) in data.QuestionContentObj" :key="index">
        <tr>
          <td style="width:40px;text-align:center;">
            <div class="num_option_dx2">
              {{item.Name}}
            </div>
          </td>
          <td>
            <div class="InpDIV" style="border:0;" v-html="item.Content"></div>
          </td>
        </tr>
      </tbody>
      <tfoot v-if="isShowAnswer">
        <tr>
          <td colspan="2">正确答案：{{data.Answer}}</td>
        </tr>
        <tr>
          <td colspan="2">解析：<span v-html="data.AnswerParse"></span></td>
        </tr>
      </tfoot>
    </table>
  </div>
</template>
<script>
  export default {
    props: {
      questionObj: {
        type: Object,
      },
      //是否显示答案和解析
      isShowAnswer: {
        type: Boolean,
        default: false,
      }
    },
    data() {
      return {
        data: this.questionObj,
      };
    },
    methods: {

    },
    mounted() {

    },
    watch: {
      isShowAnswer: {
        handler(newValue) {

        },
        deep: true
      },
    }
  };

</script>
