mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🎨 还差尘歌壶跟大地图探索没写
This commit is contained in:
31
src/components/itembox/tib-ur-avatar.vue
Normal file
31
src/components/itembox/tib-ur-avatar.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<TItemBox :model-value="box" />
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
// vue
|
||||
import { onMounted, ref } from "vue";
|
||||
import TItemBox, { TItemBoxData } from "../main/t-itembox.vue";
|
||||
|
||||
interface TibUrAvatarProps {
|
||||
modelValue: TGApp.Sqlite.Record.Avatar
|
||||
}
|
||||
|
||||
const props = defineProps<TibUrAvatarProps>();
|
||||
const box = ref({} as TItemBoxData);
|
||||
|
||||
onMounted(async () => {
|
||||
box.value = {
|
||||
size: "80px",
|
||||
height: "80px",
|
||||
ltSize: "30px",
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/element/${props.modelValue.element}元素.webp`,
|
||||
rt: props.modelValue.constellation.toString() || "0",
|
||||
rtSize: "20px",
|
||||
innerText: `${props.modelValue.name}`,
|
||||
innerHeight: 20,
|
||||
display: "inner",
|
||||
};
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user