材料 wiki 页面草创

This commit is contained in:
目棃
2024-07-16 21:59:57 +08:00
parent 9f40e28eca
commit ecbf8209bd
4 changed files with 158 additions and 7 deletions

View File

@@ -19,7 +19,6 @@
</div>
</div>
</div>
<!-- todo 这边加了 v-if需要经过测试 -->
<TwoMaterial :data="curData" v-model="showOverlay" />
</template>
<script lang="ts" setup>

View File

@@ -1,6 +1,7 @@
<template>
<TOverlay v-model="visible" hide :to-click="onCancel" blur-val="20px">
<div v-if="props.data" class="twom-container">
<slot name="left"></slot>
<div class="twom-box">
<div class="twom-top">
<img :src="`/icon/material/${props.data.id}.webp`" alt="icon" class="twom-left" />
@@ -17,6 +18,7 @@
</div>
</div>
</div>
<slot name="right"></slot>
</div>
</TOverlay>
</template>
@@ -66,17 +68,17 @@ function onCancel() {
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
border-radius: 10px;
background: var(--box-bg-1);
column-gap: 10px;
}
.twom-box {
position: relative;
display: flex;
max-width: 800px;
width: 800px;
flex-direction: column;
padding: 10px;
border-radius: 10px;
background: var(--box-bg-1);
row-gap: 10px;
}