<template>
    <div class="more-box">
        <div class="title">{{ $t(`other.空间名称切换`) }}</div>
        <div class="light-bottom">
            <div
                @click="handlezChange(item)"
                class="item-box"
                :class="item.id ? 'light-box-active ' : ''"
                v-for="(item, index) in FORUMArr"
            >
                <div class="name">{{ item.roomName }}</div>
                <div style="width: 100rpx;">
                    <SwitchButton />
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import SwitchButton from '@/components/switch-button/SwitchButton.vue';
// 接收父组件传递的初始状态
const props = defineProps({
    FORUMArr: {
        type: Array,
        default: () => {
            return []
        }
    }
})




</script>
<style lang="scss" scoped>
.more-box {
    .title {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 36px;
        height: 140px;
        font-family: PingFang SC;
        font-weight: 300;
        font-size: 24px;
        line-height: 100%;
        text-align: center;
        color: #001428;
        height: 140px;
    }
    .light-bottom {
        // margin-top: 36px;
        .item-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 300px;
            height: 68px;
            box-sizing: border-box;
            padding: 20px 24px;
            border-radius: 24px 24px 44px 24px;
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0px 10px 20px 0px rgba(0, 20, 40, 0.05);
            margin-bottom: 12px;
            .name {
                //styleName: Chi/Body Regular;
                font-family: PingFang SC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19px;
                letter-spacing: 0.02em;
                color: rgba(0, 20, 40, 1);
            }
        }
        .light-box-active {
            background: rgba(255, 255, 255, 0.6);
        }
    }
}
</style>

