Files
TeyvatGuide/src/components/userCharacter/tuc-detail-desc-constellation.vue
2024-06-26 22:12:02 +08:00

67 lines
1.5 KiB
Vue

<template>
<TucDetailDesc>
<template #title>
<span>命之座</span>
</template>
<template #content>
<TucDetailConstellation :model-value="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>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="parseHtmlText(props.modelValue.description)"></span>
</template>
</TucDetailDesc>
</template>
<script lang="ts" setup>
import { parseHtmlText } from "../../utils/toolFunc.js";
import TucDetailConstellation from "./tuc-detail-constellation.vue";
import TucDetailDesc from "./tuc-detail-desc.vue";
interface TucDetailDescConstellationProps {
modelValue: TGApp.Sqlite.Character.RoleConstellation;
}
const props = defineProps<TucDetailDescConstellationProps>();
</script>
<style lang="css" scoped>
.tuc-ddc-content {
display: flex;
height: 100%;
flex-direction: column;
align-items: start;
justify-content: space-around;
margin-left: 5px;
color: var(--tgc-dark-1);
}
.tuc-ddc-top {
height: 20px;
color: var(--box-text-3);
}
.tuc-ddc-bottom {
height: 20px;
color: var(--box-text-1);
}
.tuc-ddc-bottom :nth-child(1) {
margin-right: 5px;
}
.tuc-ddc-bottom :nth-child(3) {
color: var(--tgc-yellow-1);
}
</style>