♻️ 素材日历 Overlay 材料组件优化

This commit is contained in:
BTMuli
2023-06-20 20:56:59 +08:00
parent e1b8089386
commit babd9a3b09
4 changed files with 120 additions and 111 deletions

View File

@@ -0,0 +1,23 @@
<template>
<TItemBox2 v-model="box" />
</template>
<script lang="ts" setup>
// vue
import { computed } from "vue";
import TItemBox2, { TItemBox2Data } from "../main/t-itembox-2.vue";
interface TMiniWeaponProps {
item: TGApp.App.Calendar.Material;
}
const props = defineProps<TMiniWeaponProps>();
const box = computed(() => {
return {
bg: props.item.bg,
icon: props.item.icon,
star: props.item.starIcon,
width: "150px",
height: "45px",
name: props.item.name,
} as TItemBox2Data;
});
</script>