Initial commit

This commit is contained in:
yuding
2026-04-20 10:13:52 +08:00
commit 7954b98fc2
50 changed files with 10143 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
<template>
<section class="bottom-panel" :class="{ 'is-collapsed': collapsed }">
<header class="bottom-panel-header">
<slot name="header"></slot>
</header>
<button class="iconbtn bottom-panel-toggle" type="button" @click="toggle">{{ collapsed ? "" : "" }}</button>
<div v-show="!collapsed" class="bottom-panel-body">
<slot />
</div>
</section>
</template>
<script setup>
const props = defineProps({
collapsed: {
type: Boolean,
default: false,
},
});
const emit = defineEmits(["update:collapsed"]);
function toggle() {
emit("update:collapsed", !props.collapsed);
}
</script>
<style scoped>
.bottom-panel {
position: absolute;
left: 370px;
right: 16px;
bottom: 100px;
height: 390px;
border-radius: 18px;
border: 1px solid rgba(83, 214, 206, 0.24);
background:
radial-gradient(420px 180px at 14% 0%, rgba(83, 214, 206, 0.2), transparent 66%) padding-box,
radial-gradient(520px 220px at 82% 0%, rgba(40, 156, 228, 0.14), transparent 70%) padding-box,
linear-gradient(180deg, rgba(18, 33, 40, 0.94), rgba(14, 24, 31, 0.9)) padding-box;
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.36),
0 0 0 1px rgba(83, 214, 206, 0.14) inset;
overflow: hidden;
z-index: 26;
}
.bottom-panel.is-collapsed {
height: 70px;
}
.bottom-panel-header {
padding: 12px 52px 12px 12px;
border-bottom: 1px solid rgba(83, 214, 206, 0.28);
background:
radial-gradient(380px 120px at 18% 0%, rgba(83, 214, 206, 0.28), transparent 70%),
linear-gradient(180deg, rgba(25, 137, 124, 0.86), rgba(16, 66, 82, 0.64));
}
.bottom-panel-toggle {
position: absolute;
right: 12px;
top: 12px;
}
.iconbtn {
width: 30px;
height: 30px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.42);
color: rgba(11, 27, 58, 0.86);
font-weight: 900;
cursor: pointer;
}
.bottom-panel-body {
padding: 0 12px 12px;
overflow: auto;
height: calc(100% - 66px);
}
@media (max-width: 1300px) {
.bottom-panel {
left: 330px;
}
}
</style>

View File

@@ -0,0 +1,83 @@
<template>
<div class="page-canvas">
<header class="page-topbar">
<div class="topbar-center">
<div class="model-title">{{ title }}</div>
</div>
<div v-if="$slots['topbar-right']" class="topbar-right">
<slot name="topbar-right"></slot>
</div>
</header>
<section class="model-stage">
<slot name="model">
<ModelPlaceholder />
</slot>
</section>
<slot />
</div>
</template>
<script setup>
import ModelPlaceholder from "../model-placeholder/index.vue";
defineProps({
title: {
type: String,
default: "XXX特大桥主体模型.rvt",
},
});
</script>
<style scoped>
.page-canvas {
position: relative;
width: 100%;
min-height: 100vh;
overflow: hidden;
border-radius: 24px;
border: 1px solid rgba(98, 191, 206, 0.34);
background: radial-gradient(circle at 50% 30%, #bcc9d6 0%, #b2c3d2 60%, #a8b8c9 100%);
box-shadow: inset 0 0 0 8px rgba(214, 230, 241, 0.55);
}
.page-topbar {
position: absolute;
inset: 0 0 auto;
height: 120px;
z-index: 30;
}
.topbar-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 16px;
display: grid;
justify-items: center;
gap: 10px;
}
.topbar-right {
position: absolute;
right: 24px;
top: 16px;
display: flex;
align-items: flex-start;
justify-content: flex-end;
}
.model-title {
font-size: 20px;
letter-spacing: 1px;
font-weight: 700;
color: rgba(255, 128, 52, 0.95);
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.model-stage {
position: absolute;
inset: 0;
}
</style>

View File

@@ -0,0 +1,89 @@
<template>
<aside class="side-panel" :class="{ 'is-collapsed': collapsed }">
<header class="side-panel-header">
<div class="side-panel-title">{{ title }}</div>
<button class="iconbtn" type="button" @click="toggle">{{ collapsed ? "" : "" }}</button>
</header>
<div v-show="!collapsed" class="side-panel-body">
<slot />
</div>
</aside>
</template>
<script setup>
const props = defineProps({
title: {
type: String,
default: "",
},
collapsed: {
type: Boolean,
default: false,
},
});
const emit = defineEmits(["update:collapsed"]);
function toggle() {
emit("update:collapsed", !props.collapsed);
}
</script>
<style scoped>
.side-panel {
position: absolute;
left: 16px;
top: 175px;
width: 320px;
bottom: 100px;
border-radius: 18px;
border: 1px solid rgba(83, 214, 206, 0.24);
background:
radial-gradient(260px 140px at 8% 0%, rgba(63, 203, 191, 0.16), transparent 62%) padding-box,
linear-gradient(180deg, rgba(20, 31, 37, 0.92), rgba(15, 23, 29, 0.88)) padding-box;
box-shadow:
0 22px 60px rgba(0, 0, 0, 0.34),
0 0 0 1px rgba(83, 214, 206, 0.12) inset;
overflow: hidden;
z-index: 25;
}
.side-panel.is-collapsed {
width: 64px;
}
.side-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 10px 10px 12px;
border-bottom: 1px solid rgba(83, 214, 206, 0.16);
background:
radial-gradient(360px 100px at 10% 0%, rgba(83, 214, 206, 0.24), transparent 68%),
linear-gradient(180deg, rgba(28, 134, 122, 0.84), rgba(15, 60, 74, 0.62));
}
.side-panel-title {
font-size: 14px;
font-weight: 900;
color: rgba(207, 247, 242, 0.96);
white-space: nowrap;
}
.iconbtn {
width: 30px;
height: 30px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.42);
color: rgba(11, 27, 58, 0.86);
font-weight: 900;
cursor: pointer;
}
.side-panel-body {
height: calc(100% - 52px);
overflow: auto;
padding: 8px;
}
</style>