mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-18 10:18:14 +08:00
26 lines
575 B
Vue
26 lines
575 B
Vue
<template>
|
|
<TItemBox2 v-model="box" />
|
|
</template>
|
|
<script lang="ts" setup>
|
|
// vue
|
|
import { computed } from "vue";
|
|
import TItemBox2 from "../main/t-itembox-2.vue";
|
|
// types
|
|
import type { TItemBox2Data } from "../main/t-itembox-2.vue";
|
|
|
|
interface TMiniWeaponProps {
|
|
item: TGApp.App.Calendar.Material;
|
|
}
|
|
const props = defineProps<TMiniWeaponProps>();
|
|
const box = computed<TItemBox2Data>(() => {
|
|
return {
|
|
bg: props.item.bg,
|
|
icon: props.item.icon,
|
|
star: props.item.starIcon,
|
|
width: "150px",
|
|
height: "45px",
|
|
name: props.item.name,
|
|
};
|
|
});
|
|
</script>
|