本地提交:修复浮动区域显示问题,使用Area组件替代Panel组件

This commit is contained in:
AutoRobot Dev
2025-11-02 17:19:53 +07:00
parent 4927bf5491
commit 07be8988ea

View File

@@ -2,6 +2,29 @@
<div class="dock-layout">
<!-- 主区域 -->
<Area :WindowState="windowState" :showTitleBar="false" title="主区域" />
<!-- 浮动区域列表 -->
<div
v-for="area in floatingAreas"
:key="area.id"
class="floating-area"
:style="{
left: area.x + 'px',
top: area.y + 'px',
width: area.width + 'px',
height: area.height + 'px'
}"
>
<Area
:id="area.id"
:title="area.title"
:WindowState="'正常'"
:showTitleBar="true"
:width="area.width"
:height="area.height"
@close="onCloseFloatingArea(area.id)"
/>
</div>
</div>
</template>
@@ -83,6 +106,16 @@ defineExpose({
overflow: hidden;
}
/* 浮动区域样式 */
.floating-area {
position: absolute;
z-index: 10;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
background-color: #fff;
overflow: hidden;
}
/* 添加浮动区域按钮样式 */
.add-floating-btn {
font-size: 14px;