实现添加浮动面板功能:创建Area时自动添加Panel并填充满父容器

This commit is contained in:
zqm
2025-11-04 10:53:22 +08:00
parent b47a8fd600
commit d0ce4380f5
2 changed files with 53 additions and 5 deletions

View File

@@ -50,7 +50,8 @@
<!-- 内容区域 -->
<div class="vs-content">
<!-- 内容区域 -->
<!-- 这里是内容区域使用slot接收子组件 -->
<slot></slot>
</div>
</div>
</div>
@@ -316,7 +317,7 @@ onMounted(() => {
.hdr-close:hover { opacity: 1; }
/* 内容区域 */
.vs-content { display: flex; flex: 1; overflow: hidden; }
.vs-content { display: flex; flex: 1; overflow: visible; background-color: #ffffff; position: relative; }
/* 左侧输出 */
.vs-left { flex: 1; background: var(--vs-panel); display: flex; }