添加圣遗物展示

This commit is contained in:
BTMuli
2023-06-17 21:22:13 +08:00
parent 0833ceba38
commit 59f66079e8
6 changed files with 267 additions and 26 deletions

View File

@@ -0,0 +1,77 @@
<template>
<TucDetailDesc>
<template #title>
<span>圣遗物</span>
</template>
<template #content>
<TucDetailRelic v-model="props.modelValue" pos="props.modelValue.pos" />
<div class="tuc-ddr-content">
<div class="tuc-ddrc-top">
<span>{{ props.modelValue.name }}</span>
<span>+</span>
<span>{{ props.modelValue.level }}</span>
</div>
<div class="tuc-ddrc-bottom">
<img :src="`/icon/star/${props.modelValue.star}.webp`" alt="star">
</div>
</div>
</template>
<template #desc>
<div class="tuc-ddrd-title">
{{ props.modelValue.set.name }}
</div>
<div v-for="desc in props.modelValue.set.effect" class="tuc-ddrc-desc">
<span>{{ desc.active }}件套</span>
<span>{{ desc.description }}</span>
</div>
</template>
</TucDetailDesc>
</template>
<script lang="ts" setup>
// vue
import TucDetailDesc from "./tuc-detail-desc.vue";
import TucDetailRelic from "./tuc-detail-relic.vue";
interface TucDetailDescRelicProps {
modelValue: TGApp.Sqlite.Character.RoleReliquary;
}
const props = defineProps<TucDetailDescRelicProps>();
</script>
<style lang="css" scoped>
.tuc-ddr-content {
display: flex;
flex-direction: column;
align-items: start;
justify-content: space-around;
height: 100%;
margin-left: 5px;
}
.tuc-ddrc-top {
height: 20px;
}
.tuc-ddrc-top :nth-child(1) {
margin-right: 10px;
}
.tuc-ddrc-top :nth-child(3) {
color: var(--common-color-yellow);
}
.tuc-ddrc-bottom {
height: 20px;
}
.tuc-ddrc-bottom img {
height: 100%;
width: 100%;
object-fit: contain;
}
.tuc-ddrd-title {
font-family: var(--font-title);
font-size: 16px;
}
</style>