<template>
	<view class="dfficultyAnalysis-box flex">
        <view class="dfficultyAnalysis-title flex">
            <view v-for="(T,index) in TitleList" :key="index">{{T}}</view>
        </view>
        <view class="dfficultyAnalysis-content flex">
            <view class="dfficultyAnalysis-num flex" v-for="(item,index) in DifficultyList" :key="index">
                <text>{{item.Difficulty}}</text>
                <text>{{item.Count}}</text>
                <text>{{item.Score}}</text>
            </view>
            
        </view>
        
	</view>
</template>
<script>
	import {
		reactive,
		toRefs,
		onMounted,
		getCurrentInstance,
		inject
	} from "vue";

	export default {
		props: {
			DifficultyList:[]
		},
		components: {},
		setup() {

			let data = reactive({
				obj: {
					Name: '',
					Photo: '',
				},
				showPhone: false,
				showLogin: true, //多次点击
                TitleList:['题目难度','题目数量','题目分数']
			});
			return {
				...toRefs(data),
			};
		},
	};
</script>
<style scoped>
    .dfficultyAnalysis-num text:first-child{
        font-size: 20rpx;
        font-weight: 400;
        font-style: initial;
    }
    .dfficultyAnalysis-num text{
        flex: 0 0 33.33%;
        text-align: center;
    }
    .dfficultyAnalysis-num:last-child{
        margin-bottom: 47rpx;
    }
    .dfficultyAnalysis-num{
        flex: 1;
        font-size: 36rpx;
        font-weight: 800;
        font-style: italic;
        color: #282828;
        align-items: center;
        margin-top: 40rpx;
    }
    .dfficultyAnalysis-content{
        flex-direction: column; 
    }
    .dfficultyAnalysis-title view:first-child{
        font-weight: bold;
        color: #282828;
    }
    .dfficultyAnalysis-title view{
        flex: 0 0 33.33%;
        color: #A1A1A1;
    }
    .dfficultyAnalysis-title{
        flex-shrink: 0;
        font-size: 20rpx;
        font-weight: 400;
        color: #282828;
        padding: 41rpx 0 21rpx 0;
        border-bottom:2rpx solid #EDEDED;
        text-align: center;
    }
    .dfficultyAnalysis-box{
        margin: 30rpx 50rpx 0 50rpx;
        background: #FFFFFF;
        box-shadow: 0px 6px 29px 0px rgba(76, 76, 76, 0.09);
        border-radius: 30px;
        flex-direction: column;
    }
</style>
