Some checks failed
Build Multi-Platform Binaries / build-binaries (amd64, darwin, server, false) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (amd64, linux, client, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (amd64, linux, server, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (amd64, windows, client, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (amd64, windows, server, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm, 7, linux, client, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm, 7, linux, server, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm64, darwin, server, false) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm64, linux, client, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm64, linux, server, true) (push) Has been cancelled
Build Multi-Platform Binaries / build-binaries (arm64, windows, server, false) (push) Has been cancelled
Build Multi-Platform Binaries / build-frontend (push) Has been cancelled
- 全面实现毛玻璃(glassmorphism)设计效果,提升整体视觉质感 - 更新深色主题配色方案,采用深邃渐变背景和半透明元素 - 在头部、底部、模态框等组件添加毛玻璃效果和模糊滤镜 - 重构导航栏样式,增加高度和圆角,优化悬停状态效果 - 实现动态背景粒子动画系统,增强页面视觉层次感 - 更新卡片组件样式,添加高光边框和阴影效果 - 优化按钮交互效果,添加光泽和悬停动效 - 调整输入框、下拉菜单等表单元素的毛玻璃样式 - 更新主题切换菜单和用户下拉菜单的视觉效果 - 为在线状态指示器添加发光脉冲动画效果
129 lines
2.4 KiB
Vue
129 lines
2.4 KiB
Vue
<script setup lang="ts">
|
|
import { CloseOutline } from '@vicons/ionicons5'
|
|
|
|
defineProps<{
|
|
show: boolean
|
|
title: string
|
|
width?: string
|
|
}>()
|
|
|
|
const emit = defineEmits<{
|
|
(e: 'close'): void
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<Teleport to="body">
|
|
<div v-if="show" class="modal-overlay" @click.self="emit('close')">
|
|
<div class="modal-container" :style="{ maxWidth: width || '500px' }">
|
|
<div class="modal-header">
|
|
<h3>{{ title }}</h3>
|
|
<button class="close-btn" @click="emit('close')">
|
|
<CloseOutline />
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<slot />
|
|
</div>
|
|
<div class="modal-footer">
|
|
<slot name="footer" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Teleport>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal-container {
|
|
width: 100%;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: var(--glass-blur);
|
|
-webkit-backdrop-filter: var(--glass-blur);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--color-border);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
position: relative;
|
|
}
|
|
|
|
/* 顶部高光 */
|
|
.modal-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 15%;
|
|
right: 15%;
|
|
height: 1px;
|
|
background: linear-gradient(90deg,
|
|
transparent 0%,
|
|
rgba(255, 255, 255, 0.15) 50%,
|
|
transparent 100%);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--color-border-light);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.close-btn {
|
|
background: var(--glass-bg-light);
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.close-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid var(--color-border-light);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.modal-footer:empty {
|
|
display: none;
|
|
}
|
|
</style>
|