2025-05-22 16:10:22 +08:00

62 lines
1.1 KiB
Vue

<template>
<div style="width: 100%; height: 100%">
<div class="basic">
<div v-for="(item, index) in data" :key="index" class="line">
<div class="title">{{ item.title }}</div>
<div class="values">{{ item.value }}</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
/* --------------- data --------------- */
// #region
const props = defineProps({
data: {
type: Array,
default: () => [],
},
});
// #endregion
/* --------------- methods --------------- */
// #region
// #endregion
</script>
<style lang="scss" scoped>
.basic {
width: 100%;
margin-top: 10px;
height: 95%;
border: 2px solid #01fefd;
border-radius: 16px;
backdrop-filter: blur(2px);
display: flex;
flex-direction: column;
justify-content: flex-start;
color: #ffffff;
padding: 20px;
.line {
display: flex;
justify-content: space-between;
text-align: left;
line-height: 50px;
.title {
font-size: 14px;
width: 40%;
color: #ddd;
}
.values {
font-size: 16px;
width: 60%;
}
}
}
</style>