wiki 页添加子页面入口

This commit is contained in:
BTMuli
2024-01-05 15:31:09 +08:00
parent d8b3aca52e
commit 722efe7d0c
4 changed files with 88 additions and 99 deletions

View File

@@ -1,43 +0,0 @@
<template>
<TItemBox :model-value="box" />
</template>
<script lang="ts" setup>
import { computed } from "vue";
import TItemBox, { type TItemBoxData } from "../main/t-itembox.vue";
interface TibCalendarAvatarProps {
modelValue: TGApp.App.Character.WikiBriefInfo;
}
const props = defineProps<TibCalendarAvatarProps>();
const box = computed<TItemBoxData>(() => {
if (props.modelValue.id === 10000005 || props.modelValue.id === 10000007) {
return {
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
icon: `/WIKI/character/${props.modelValue.id}.webp`,
size: "128px",
height: "128px",
display: "inner",
lt: `/icon/weapon/${props.modelValue.weapon}.webp`,
ltSize: "40px",
innerHeight: 30,
innerText: props.modelValue.name,
clickable: true,
};
}
return {
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
icon: `/WIKI/character/${props.modelValue.id}.webp`,
size: "128px",
height: "128px",
display: "inner",
lt: `/icon/element/${props.modelValue.element}元素.webp`,
ltSize: "40px",
innerHeight: 30,
innerIcon: `/icon/weapon/${props.modelValue.weapon}.webp`,
innerText: props.modelValue.name,
clickable: true,
};
});
</script>

View File

@@ -1,29 +0,0 @@
<template>
<TItemBox :model-value="box" style="cursor: pointer" />
</template>
<script lang="ts" setup>
import { computed } from "vue";
import TItemBox from "../main/t-itembox.vue";
import type { TItemBoxData } from "../main/t-itembox.vue";
interface TibCalendarWeaponProps {
modelValue: TGApp.App.Weapon.WikiBriefInfo;
}
const props = defineProps<TibCalendarWeaponProps>();
const box = computed<TItemBoxData>(() => {
return {
bg: props.modelValue.bg,
icon: props.modelValue.icon,
clickable: true,
size: "128px",
height: "128px",
display: "inner",
lt: props.modelValue.weaponIcon,
ltSize: "40px",
innerText: props.modelValue.name,
innerHeight: 30,
};
});
</script>