点击修改z-index
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
:key="area.id"
|
||||
:type="'Area'"
|
||||
:config="area"
|
||||
:style="{ zIndex: zIndexManager.getFloatingAreaZIndex(area.id) }"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -700,14 +699,17 @@ const addFloatingPanel = (panel) => {
|
||||
}
|
||||
};
|
||||
|
||||
// 生成唯一的areaId
|
||||
const areaId = `area-${Date.now()}`;
|
||||
|
||||
const newArea = {
|
||||
id: `area-${Date.now()}`,
|
||||
id: areaId,
|
||||
type: 'floating', // 添加浮动类型标识
|
||||
left: 100 + Math.random() * 200,
|
||||
top: 100 + Math.random() * 200,
|
||||
width: 300,
|
||||
height: 200,
|
||||
zIndex: zIndexManager.getFloatingAreaZIndex(`area-${Date.now()}`),
|
||||
zIndex: zIndexManager.getFloatingAreaZIndex(areaId),
|
||||
// 使用children结构以兼容Render组件的渲染逻辑
|
||||
children: {
|
||||
type: 'TabPage',
|
||||
|
||||
Reference in New Issue
Block a user