🌱 角色详情页 overlay 草创

This commit is contained in:
BTMuli
2023-06-16 23:31:53 +08:00
parent 0d7ed8d239
commit 0a34f4e483
7 changed files with 532 additions and 13 deletions

View File

@@ -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>