<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-right 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>
        
	</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 text{
        font-size: 28rpx;
        margin-top: 10rpx;
    }
    .dfficultyAnalysis-num text{
        flex: 0 0 50%;
        font-size: 36px;
        font-weight: 800;
        font-style: italic;
        color: #282828;
    }
    .dfficultyAnalysis-num:first-child{
        margin-top: 0rpx;
    }
    .dfficultyAnalysis-num{
        flex: 0 0 50%;
        font-size: 20rpx;
        color: #282828;
        font-weight: 400;
        flex-direction: row;
        margin-bottom: 0rpx;
    }
    .dfficultyAnalysis-right{
        flex: 0 0 66.67%;
        flex-direction: column;
        justify-content: space-between;
    }
    .dfficultyAnalysis-left view:first-child{
        margin-top: 50rpx;
    }
    .dfficultyAnalysis-left view{
        margin-bottom: 50rpx;
    }
    .dfficultyAnalysis-left{
        flex: 0 0 33.33%;
        flex-direction: column;
        font-size: 20rpx;
        color: #282828;
        font-weight: 400;
    }
    .dfficultyAnalysis-content{
        text-align: center;
        align-items: center;
    }
    .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>
