mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
76 lines
1.7 KiB
Vue
76 lines
1.7 KiB
Vue
<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;
|
||
height: 100%;
|
||
flex-direction: column;
|
||
align-items: start;
|
||
justify-content: space-around;
|
||
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 {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.tuc-ddrd-title {
|
||
font-family: var(--font-title);
|
||
font-size: 16px;
|
||
}
|
||
</style>
|