🐛 补充缺漏的旅行者 icon

This commit is contained in:
BTMuli
2023-06-09 09:51:45 +08:00
parent ab7b6f72dc
commit 35cb05689e
3 changed files with 10 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@@ -12,6 +12,15 @@ interface TibUrAvatarProps {
const props = defineProps<TibUrAvatarProps>(); const props = defineProps<TibUrAvatarProps>();
const box = ref({} as TItemBoxData); const box = ref({} as TItemBoxData);
const getName = () => {
return (
props.modelValue.id === 10000005
? "旅行者-空"
: props.modelValue.id === 10000007
? "旅行者-荧"
: props.modelValue.name
);
};
onMounted(async () => { onMounted(async () => {
box.value = { box.value = {
@@ -23,7 +32,7 @@ onMounted(async () => {
lt: `/icon/element/${props.modelValue.element}元素.webp`, lt: `/icon/element/${props.modelValue.element}元素.webp`,
rt: props.modelValue.constellation.toString() || "0", rt: props.modelValue.constellation.toString() || "0",
rtSize: "20px", rtSize: "20px",
innerText: `${props.modelValue.name}`, innerText: `${getName()}`,
innerHeight: 20, innerHeight: 20,
display: "inner", display: "inner",
}; };