<template>
    <div class="list-item">
        <div class="item-title">
            {{ moduleData.data.title }}
        </div>
        <div class="item-text">
            {{ moduleData.data.propaganda }}
        </div>
        <div class="item-img-box">
            <!-- <div class="img-box">
                <img src="../../assets/homeImage/mapImg.png" class="item-img" alt="">
                <img src="../../assets/homeImage/voide.svg" class="img" alt="">
            </div> -->
            <div class="img-box" v-for="(item, i) in moduleData.data.images" :key="i">
                <img :src="item" class="item-img" alt="">
                <img src="../../assets/homeImage/voide.svg" class="img" alt="">
            </div>
        </div>
    </div>
</template>
  
<script setup>
import { defineProps, reactive } from 'vue'
const props = defineProps({
    data: {
        type: Object,
        default: function () {
            return {}
        }
    }
})
let moduleData = reactive({ data: {} })
moduleData.data = props.data
</script>
<style scoped>
.list-item {
    width: 291px;
    background: -webkit-linear-gradient(282.684800209667deg, rgba(255, 255, 255, 1) 27%, rgba(98, 177, 255, 1) 325%);
    background: -moz-linear-gradient(167.315199790333deg, rgba(255, 255, 255, 1) 27%, rgba(98, 177, 255, 1) 325%);
    background: linear-gradient(167.315199790333deg, rgba(255, 255, 255, 1) 27%, rgba(98, 177, 255, 1) 325%);
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(229, 232, 240, 1);
    border-radius: 16px;
    padding: 15px 20px;
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
    cursor: pointer;

    .item-title {
        font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        color: #000000;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .item-text {
        font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        color: #7F7F7F;
        text-align: left;
        margin-top: 12px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .item-img-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;

        .img-box {
            width: 120px;
            height: 80px;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;

            .item-img {
                width: 120px;
                height: 80px;
                border-radius: 10px;
                object-fit: cover;
            }

            .img {
                width: 46px;
                height: 46px;
                object-fit: contain;
                position: absolute;
            }
        }
    }
}
</style>
  