💄 微调布局

This commit is contained in:
BTMuli
2023-09-01 10:10:28 +08:00
parent 09317afac6
commit 2c129351c1
2 changed files with 8 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<template>
<div class="tud-db-box">
<div class="tud-db-time">{{ props.title }} {{ props.modelValue.time }}</div>
<div class="tud-db-icons-grid">
<TibAbyssDetail
v-for="avatar in props.modelValue.characters"
@@ -7,15 +8,13 @@
:model-value="avatar"
/>
</div>
<div class="tud-db-time">
{{ props.modelValue.time }}
</div>
</div>
</template>
<script lang="ts" setup>
import TibAbyssDetail from "../itembox/tib-abyss-detail.vue";
interface TuaDetailBattleProps {
title: string;
modelValue: TGApp.Sqlite.Abyss.Battle;
}
@@ -23,15 +22,13 @@ const props = defineProps<TuaDetailBattleProps>();
</script>
<style lang="css" scoped>
.tud-db-box {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 5px;
border-radius: 5px;
background: var(--common-shadow-t-1);
}
.tud-db-icons-grid {
display: flex;
width: 100%;
flex-direction: row;
justify-content: flex-start;
gap: 10px;
@@ -40,6 +37,6 @@ const props = defineProps<TuaDetailBattleProps>();
.tud-db-time {
color: var(--common-text-content);
font-size: 12px;
text-align: center;
text-align: left;
}
</style>

View File

@@ -5,8 +5,8 @@
:name="`第${props.modelValue.id}间`"
mode="level"
/>
<TuaDetailBattle :model-value="props.modelValue.upBattle" />
<TuaDetailBattle :model-value="props.modelValue.downBattle" />
<TuaDetailBattle title="上半" :model-value="props.modelValue.upBattle" />
<TuaDetailBattle title="下半" :model-value="props.modelValue.downBattle" />
</div>
</template>
<script lang="ts" setup>