统一名称
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<Render
|
||||
v-for="area in floatingAreas"
|
||||
:key="area.id"
|
||||
:type="'area'"
|
||||
:type="'Area'"
|
||||
:config="area"
|
||||
:style="{ zIndex: area.zIndex || zIndexManager.getFloatingAreaZIndex(area.id) }"
|
||||
@close="() => onCloseFloatingArea(area.id)"
|
||||
@@ -277,15 +277,15 @@ const addFloatingPanel = () => {
|
||||
// 使用Render期望的children结构
|
||||
children: [
|
||||
{
|
||||
type: 'tabpage',
|
||||
type: 'TabPage',
|
||||
id: `tabpage-${currentId}-1`,
|
||||
title: `标签页 1`,
|
||||
tabPosition: 'bottom',
|
||||
children: {
|
||||
type: 'panel',
|
||||
type: 'Panel',
|
||||
items: [
|
||||
{
|
||||
type: 'panel',
|
||||
type: 'Panel',
|
||||
id: `panel-${currentId}-1-1`,
|
||||
title: `面板 ${currentId}`,
|
||||
x: 0,
|
||||
@@ -335,7 +335,7 @@ const onMaximize = (panelId) => {
|
||||
for (const area of floatingAreas.value) {
|
||||
if (area.children) {
|
||||
for (const child of area.children) {
|
||||
if (child.type === 'tabpage' && child.children && child.children.type === 'panel') {
|
||||
if (child.type === 'TabPage' && child.children && child.children.type === 'Panel') {
|
||||
const panels = child.children.items || []
|
||||
if (panels.length === 1 && panels[0].id === panelId) {
|
||||
// 当区域只包含一个Panel时,切换Area和Panel的最大化状态
|
||||
@@ -393,7 +393,7 @@ const onClosePanel = (areaId, panelId) => {
|
||||
const area = floatingAreas.value.find(a => a.id === areaId)
|
||||
if (area && area.children) {
|
||||
for (const child of area.children) {
|
||||
if (child.type === 'tabpage' && child.children && child.children.type === 'panel') {
|
||||
if (child.type === 'TabPage' && child.children && child.children.type === 'Panel') {
|
||||
const panels = child.children.items || []
|
||||
const panelIndex = panels.findIndex(p => p.id === panelId)
|
||||
if (panelIndex !== -1) {
|
||||
@@ -1539,7 +1539,7 @@ const clearHiddenList = () => {
|
||||
/**
|
||||
* 统一停靠结束处理函数
|
||||
* 根据拖拽类型和目标区域执行相应的停靠逻辑
|
||||
* @param {string} dragType - 拖拽类型 ('panel', 'area', 'tabpage')
|
||||
* @param {string} dragType - 拖拽类型 ('Panel', 'Area', 'TabPage')
|
||||
* @param {string} sourceAreaId - 源Area的ID
|
||||
* @param {Object} options - 可选参数
|
||||
* @returns {Object} 处理结果 {success: boolean, message: string, strategy?: string}
|
||||
|
||||
Reference in New Issue
Block a user