<template>
    <el-row class="mta-answer-area" type="flex">
        <el-col>
            <!-- 试题内容区域 -->
            <div class="mta-three-row-div">
                <span class="three-span">正确答案:</span>
                <span class="answer-vhtml-div" style="flex:1" v-html="showAnswer"></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 {getStringByHtml2} from '@/utils/common.js'

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

