找不到区域拖拽状态
This commit is contained in:
@@ -102,55 +102,6 @@ const mainAreaResizeBars = ref([])
|
||||
// 检查主区域内是否有其他Area(简化版)
|
||||
const hasAreasInMainContent = ref(false)
|
||||
|
||||
// 代理到事件处理器的方法
|
||||
const onPanelDragStart = (areaId, event) => {
|
||||
dragStateActions.onPanelDragStart(areaId, event);
|
||||
};
|
||||
|
||||
const onPanelDragMove = (areaId, event) => {
|
||||
dragStateActions.onPanelDragMove(areaId, event);
|
||||
};
|
||||
|
||||
const onPanelDragEnd = () => {
|
||||
dragStateActions.onPanelDragEnd();
|
||||
};
|
||||
|
||||
const onPanelDragStartFromTabPage = (event) => {
|
||||
dragStateActions.onPanelDragStartFromTabPage(event);
|
||||
};
|
||||
|
||||
const onPanelDragMoveFromTabPage = (event) => {
|
||||
dragStateActions.onPanelDragMoveFromTabPage(event);
|
||||
};
|
||||
|
||||
const onPanelDragEndFromTabPage = () => {
|
||||
dragStateActions.onPanelDragEndFromTabPage();
|
||||
};
|
||||
|
||||
const onAreaDragStart = (event) => {
|
||||
dragStateActions.onAreaDragStart(event);
|
||||
};
|
||||
|
||||
const onAreaDragMove = (event) => {
|
||||
dragStateActions.onAreaDragMove(event);
|
||||
};
|
||||
|
||||
const onAreaDragEnd = (event) => {
|
||||
dragStateActions.onAreaDragEnd(event);
|
||||
};
|
||||
|
||||
const onTabDragStart = (event) => {
|
||||
dragStateActions.onTabDragStart(event);
|
||||
};
|
||||
|
||||
const onTabDragMove = (event) => {
|
||||
dragStateActions.onTabDragMove(event);
|
||||
};
|
||||
|
||||
const onTabDragEnd = () => {
|
||||
dragStateActions.onTabDragEnd();
|
||||
};
|
||||
|
||||
// Area相关事件处理
|
||||
const onCloseFloatingArea = (event) => {
|
||||
const id = event.areaId;
|
||||
@@ -289,9 +240,6 @@ const setupEventListeners = () => {
|
||||
const unsubscribeFunctions = [];
|
||||
|
||||
// Area相关事件
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_DRAG_START, onAreaDragStart, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_DRAG_MOVE, onAreaDragMove, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_DRAG_END, onAreaDragEnd, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_POSITION_UPDATE, onUpdatePosition, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_DRAG_OVER, handleAreaDragOver, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.AREA_DRAG_LEAVE, handleAreaDragLeave, { componentId: 'dock-layout' }));
|
||||
@@ -300,9 +248,6 @@ const setupEventListeners = () => {
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_CHANGE, onTabChange, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_CLOSE, onTabClose, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_ADD, onTabAdd, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_DRAG_START, onTabDragStart, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_DRAG_MOVE, onTabDragMove, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.TAB_DRAG_END, onTabDragEnd, { componentId: 'dock-layout' }));
|
||||
|
||||
// Panel相关事件
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_TOGGLE_COLLAPSE, () => emit('toggleCollapse'), { componentId: 'dock-layout' }));
|
||||
@@ -310,12 +255,6 @@ const setupEventListeners = () => {
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_CLOSE_REQUEST, onCloseFloatingArea, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_CLOSE, onClosePanel, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_TOGGLE_TOOLBAR, () => emit('toggleToolbar'), { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_START, onPanelDragStart, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_MOVE, onPanelDragMove, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_END, onPanelDragEnd, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_START_FROM_TABPAGE, onPanelDragStartFromTabPage, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_MOVE_FROM_TABPAGE, onPanelDragMoveFromTabPage, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_DRAG_END_FROM_TABPAGE, onPanelDragEndFromTabPage, { componentId: 'dock-layout' }));
|
||||
unsubscribeFunctions.push(eventBus.on(EVENT_TYPES.PANEL_MAXIMIZE_SYNC, onPanelMaximizeSync, { componentId: 'dock-layout' }));
|
||||
|
||||
// Resize相关事件
|
||||
|
||||
Reference in New Issue
Block a user