<!--分录题-->
<style>
  .v_entryProblemQuestion {
    width: 100%;
  }
</style>
<template>
  <div class="v_entryProblemQuestion">
    <table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
      <tbody v-if="isShowAnswer" v-for="(item,index) in data.QuestionContentObj" :key="index">
        <tr>
          <td style="width:40px;text-align:center;padding-top:8px;">
            第{{index+1}}空</el-checkbox>
          </td>
          <td>
            <div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
          </td>
        </tr>
      </tbody>
      <tbody>
        <tr>
          <td colspan="2"><span v-if="data&&data.IsMutex==1" style="font-size:13px;">答案顺序打乱也判正确</span></td>
        </tr>
        <tr>
          <td colspan="2">1. 一个空有多种答案时请用";"隔开。如：水;H2O</td>
        </tr>
        <tr>
          <td colspan="2">2. 若试题答案是数字，可设置范围，两个数字之间用"-"。如：1-9，学生填写1到9之间的数字都算正确（包括1和9）</td>
        </tr>
      </tbody>
      <tfoot v-if="isShowAnswer">
        <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,
      };
    },
    created() {},
    methods: {

    },
    mounted() {

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

        },
        deep: true
      },
    }
  };

</script>
