<!--排序题-->
<style>
  .sortingProblemQuestion {
    width: 100%
  }

  .team_tit {
    font-size: 14px;
    color: #A8A8B3;
    padding-bottom: 20px;
  }

  .selectBox {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    position: relative;
    cursor: pointer;
    width: 58px;
    line-height: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 1px solid #E1E1E5;
    border-radius: 4px;
    font-size: 12px;
    color: #181E33;
    margin: 0 20px 14px 0;
  }

  .blue-border {
    border: 1px solid #FFFFFF;
    box-shadow: 0 0 7px 1px #75BAFF;
  }

</style>
<template>
  <div class="sortingProblemQuestion">
    <table v-if="data&&data.QuestionContentObj&&data.QuestionContentObj.length>0">
      <tr v-for="(item,index) in data.QuestionContentObj[0]">
        <td style="width:40px;text-align:center;">
          {{item.Name}}
        </td>
        <td>
          <div class="InpDIV" style="border:0;margin-top:-2px;padding-left:0;" v-html="item.Content"></div>
        </td>
        <td style="width:40px;text-align:center;">
        </td>
      </tr>
    </table>
    <br />
    <table v-if="isShowAnswer&&data&&data.QuestionContentObj&&data.QuestionContentObj.length>0">
      <tr>
        <td>
          <span style="font-weight:bold;">答案：</span>
          <span v-for="(cItem,cIndex) in data.QuestionContentObj[0]">
            {{cItem.Name}}
          </span>
        </td>
      </tr>
      <tr>
        <td>
          解析：<span v-html="data.AnswerParse"></span>
        </td>
      </tr>
    </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>
