<!--完型填空-->
<style>
  .vClozeQuestion {
    width: 100%;
  }

  .vClozeQuestion .question_Title {
    color: #A8A8B3;
    font-size: 12px;
    margin-top: 20px;
  }

  .vClozeQuestion .clozeTest_question_tit {
    width: 100%;
    height: 40px;
    background: #F7F8FA;
    padding: 0 20px;
    line-height: 40px;
    font-size: 14px;
    color: #646873;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .vClozeQuestion .clozeTest_question_tit i {
    color: #acbfd9;
    cursor: pointer;
  }

</style>
<template>
  <div class="vClozeQuestion">
    <template v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0">
      <table class="common_TiTable" v-for="(item,index) in data.QuestionContentObj" :key="index">
        <thead>
          <tr>
            <th colspan="2">
              <div class="clozeTest_question_tit">
                <div>
                  第{{index+1}}小题
                </div>
              </div>
            </th>
          </tr>
        </thead>
        <tbody class="contant">
          <tr v-for="(subItem,subIndex) in item">
            <td style="width:40px;text-align:center;">
              <div class="Answer_List2">
                {{subItem.Name}}
              </div>
            </td>
            <td>
              <div class="InpDIV" style="border:0;margin-top:-2px;" v-html="subItem.Content">
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <table class="common_TiTable" v-if="isShowAnswer">
        <tfoot>
          <tr>
            <td colspan="2">答案：{{data.Answer}}</td>
          </tr>
          <tr>
            <td colspan="2">解析：<span v-html="data.AnswerParse"></span></td>
          </tr>
        </tfoot>
      </table>
    </template>
  </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>
