mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
✨ 添加圣遗物展示
This commit is contained in:
77
src/components/userCharacter/tuc-detail-desc-relic.vue
Normal file
77
src/components/userCharacter/tuc-detail-desc-relic.vue
Normal 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>
|
||||
Reference in New Issue
Block a user