This commit is contained in:
Putoo
2026-05-22 18:47:25 +08:00
parent 0016ef7e83
commit 7d263d2b96
16 changed files with 527 additions and 40 deletions

View File

@@ -0,0 +1,99 @@
<template>
<!-- 游戏风格弹出层 -->
<van-popup v-model:show="visible" round :style="{ padding: '0px' }" closeable close-icon="close">
<div class="popup-header">
<div class="popup-title">
{{ title }}
</div>
</div>
<div class="popup-content">
<slot></slot>
</div>
</van-popup>
</template>
<script setup lang="ts">
const props = defineProps({
// 字段名、类型、默认值
isShow: Boolean,
title: String
})
const visible = ref(props.isShow)
</script>
<style scoped>
/* 弹出层整体样式 */
:deep(.game-popup) {
width: 82%;
max-width: 360px;
border-radius: 20px !important;
background: linear-gradient(135deg, #1e1e2f 0%, #292947 100%);
overflow: hidden;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
/* 标题栏 */
.popup-header {
position: relative;
padding: 18px 20px;
text-align: center;
}
/* 标题文字 */
.popup-title {
margin-top: -8px;
font-size: 18px;
font-weight: bold;
letter-spacing: 1px;
}
/* 关闭按钮 */
.close-btn {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
padding: 4px;
}
/* 内容区域 */
.popup-content {
margin-top: -35px;
padding: 15px 15px;
color: #e0e0e0;
font-size: 15px;
line-height: 1.6;
min-height: 80px;
}
/* 底部按钮栏 */
.popup-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 14px 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* 按钮通用样式 */
.footer-btn {
border-radius: 12px !important;
padding: 6px 18px !important;
font-size: 14px !important;
}
/* 取消按钮 */
.cancel-btn {
color: #b0b0b0 !important;
border-color: #444455 !important;
background: transparent !important;
}
/* 确认按钮 */
.confirm-btn {
background: linear-gradient(90deg, #7b43ff, #5c3dff) !important;
border: none !important;
}
</style>