mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
🌱 角色详情页 overlay 草创
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<template>
|
||||
<TucDetailDesc>
|
||||
<template #title>
|
||||
<span>命之座</span>
|
||||
</template>
|
||||
<template #content>
|
||||
<TucDetailConstellation v-model="props.modelValue" />
|
||||
<div class="tuc-ddc-content">
|
||||
<div class="tuc-ddc-top">
|
||||
{{ props.modelValue.name }}
|
||||
</div>
|
||||
<div class="tuc-ddc-bottom">
|
||||
<span>命之座</span>
|
||||
<span>第</span>
|
||||
<span>{{ props.modelValue.pos }}</span>
|
||||
<span>层</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template #desc>
|
||||
<span>{{ props.modelValue.description }}</span>
|
||||
</template>
|
||||
</TucDetailDesc>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
// vue
|
||||
import TucDetailDesc from "./tuc-detail-desc.vue";
|
||||
import TucDetailConstellation from "./tuc-detail-constellation.vue";
|
||||
|
||||
interface TucDetailDescConstellationProps {
|
||||
modelValue: TGApp.Sqlite.Character.RoleConstellation;
|
||||
}
|
||||
|
||||
const props = defineProps<TucDetailDescConstellationProps>();
|
||||
</script>
|
||||
<style lang="css" scoped>
|
||||
.tuc-ddc-top {
|
||||
margin-left: 15px;
|
||||
color: var(--common-color-blue-2);
|
||||
}
|
||||
|
||||
.tuc-ddc-bottom {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.tuc-ddc-bottom :nth-child(1) {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.tuc-ddc-bottom :nth-child(3) {
|
||||
color: var(--common-color-yellow);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user