feat: 新增组件

This commit is contained in:
DEV_DSW
2025-12-17 16:44:18 +08:00
parent f740491b6d
commit f863f82541
4 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<template>
<div class="drag-region">
<slot>
<span class="_placeholder">_hidden</span>
</slot>
</div>
</template>
<style scoped>
._placeholder {
opacity: 0;
}
</style>

View File

View File

@@ -2,11 +2,52 @@
@import "./theme/index.css"; @import "./theme/index.css";
@plugin "@tailwindcss/typography"; @plugin "@tailwindcss/typography";
body {
margin: 0;
padding: 0;
}
.bg { .bg {
background: linear-gradient(180deg, #EFF6FF 0%, #F5F7FA 40%); background: linear-gradient(180deg, #EFF6FF 0%, #F5F7FA 40%);
} }
* {
user-select: none;
}
body, #app {
overflow: hidden;
}
body {
font-size: 16px;
line-height: 1.6;
height: 100vh;
width: 100vw;
}
#app {
height: 100%;
width: 100%;
background-color: var(--bg-secondary);
}
.no-drag {
-webkit-app-region: no-drag;
}
.drag-region {
-webkit-app-region: drag;
}
.dialog-overlay {
opacity: 0;
transition: opacity 0.8s ease;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
z-index: 9999;
&.show {
opacity: 1;
}
}