<template>
    <el-row class="mta-answer-area" type="flex">
        <el-col>
            <!-- 试题内容区域 -->
            <div class="mta-three-row-div">
                <span class="three-span">正确答案:</span>
                <span style="flex:1" class="mta-answer-list">
                    <span v-for="item of data.showAnswer">
                        <span>{{item.label}}</span>
                        <span>({{item.answer}})</span>
                    </span>
                </span>
            </div>
            <div class="mta-three-row-div">
                <span class="three-span">答案解析:</span>
<!--                <el-input type="textarea" :readonly="true" v-model="analysis" :rows="3"></el-input>-->
                <div style="flex:1" v-html="analysis" class="answer-vhtml-div"></div>
            </div>
        </el-col>
    </el-row>
</template>

<script>
    import {getStringByHtml} from '@/utils/common.js'

    export default {
        name: "AnswerArea",
        props: {
            data: {
                type: Object,
                require: true
            }
        },
        computed: {
            analysis() {
                return this.data.analysis
            }
        }
    }
</script>
