<!--共用选择题-->
<style>
  .sharingChooseQuestion {
    width: 100%;
  }

  .B-info {
    font-size: 14PX;
    color: #A8A8B3;
    padding-bottom: 10px;
    margin-left: 13px;
  }

</style>
<template>
  <div class="sharingChooseQuestion">
    <table v-if="data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
      <thead>
        <tr>
          <th colspan="2" style="text-align:left;">
            <template v-if="data.QuestionContentObj[1]&& data.QuestionContentObj[1].length>0">
              (1)-({{data.QuestionContentObj[1].length}})题共用备选答案：
            </template>
          </th>
        </tr>
      </thead>
      <tr v-for="(item,index) in data.QuestionContentObj[0]" :key="index">
        <td style="width:40px;text-align:center; ">
          {{item.Name}}
        </td>
        <td>
          <div v-html="item.Content"></div>
        </td>
      </tr>
    </table>
    <table v-if="data.QuestionContentObj&&data.QuestionContentObj.length>0" class="common_TiTable">
      <tbody v-for="(item,index) in data.QuestionContentObj[1]" :key="index">
        <tr>
          <td style="width:40px;text-align:center;">
            ({{index+1}})
          </td>
          <td>
            <div v-html="item.Content"></div>
          </td>
        </tr>
        <tr>
          <td>
          </td>
          <td v-if="isShowAnswer">
            答案: {{data.QuestionContentObj[1][index].Name}}
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
  export default {
    props: {
      questionObj: {
        type: Object,
      },
      //是否显示答案和解析
      isShowAnswer: {
        type: Boolean,
        default: false,
      }
    },
    components: {

    },
    data() {
      return {
        data: this.questionObj,
      };
    },
    methods: {

    },
    mounted() {

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

        },
        deep: true
      },
    }
  };
</script>