<template>
  <ul class="list">
        <li v-for="item in list">
            <div class="li-left">{{ item.name }}</div>
            <div class="li-right">{{ item.value }}</div>
        </li>
      </ul>
</template>

<script setup lang='ts'>
import { ref,defineProps } from "vue";
type listType = {
    name: string,
    value: string
}
const props = defineProps<{list:listType[]}>()
</script>

<style scoped>
.list{
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    color: white;
    padding: 0 10px;
}
.list li {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content:flex-start;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.list li div {
    width: 50%;
    height: 100%;
    text-align: left;
    line-height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}
.list li:nth-child(even) {
    background-color: rgb(31, 34, 60);
}
</style>
