mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 补充缺漏的旅行者 icon
This commit is contained in:
BIN
public/WIKI/character/icon/10000005.webp
Normal file
BIN
public/WIKI/character/icon/10000005.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
public/WIKI/character/icon/10000007.webp
Normal file
BIN
public/WIKI/character/icon/10000007.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -12,6 +12,15 @@ interface TibUrAvatarProps {
|
||||
|
||||
const props = defineProps<TibUrAvatarProps>();
|
||||
const box = ref({} as TItemBoxData);
|
||||
const getName = () => {
|
||||
return (
|
||||
props.modelValue.id === 10000005
|
||||
? "旅行者-空"
|
||||
: props.modelValue.id === 10000007
|
||||
? "旅行者-荧"
|
||||
: props.modelValue.name
|
||||
);
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
box.value = {
|
||||
@@ -23,7 +32,7 @@ onMounted(async () => {
|
||||
lt: `/icon/element/${props.modelValue.element}元素.webp`,
|
||||
rt: props.modelValue.constellation.toString() || "0",
|
||||
rtSize: "20px",
|
||||
innerText: `${props.modelValue.name}`,
|
||||
innerText: `${getName()}`,
|
||||
innerHeight: 20,
|
||||
display: "inner",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user