Skip to content

Commit

Permalink
💄 微调布局
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Sep 1, 2023
1 parent 09317af commit 2c12935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
15 changes: 6 additions & 9 deletions src/components/userAbyss/tua-detail-battle.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
<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"
:key="avatar.id"
: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;
}
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;
Expand All @@ -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>
4 changes: 2 additions & 2 deletions src/components/userAbyss/tua-detail-level.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2c12935

Please sign in to comment.