import { PropType } from 'vue'; import { CodeLayoutPanelInternal, CodeLayoutGrid } from '../CodeLayout'; import { CodeLayoutSplitNGridInternal, CodeLayoutSplitNConfig } from './SplitN'; declare const _default: __VLS_WithTemplateSlots; default: string; }; /** * Whether to display Tab components. When it is `true`, it supports multiple sub panels in one grid, and the components should be rendered in the tabContentRender slot; When it is `false`, only grid segmentation is supported and panel and drag functions are not supported. You should render the content yourself in gridRender. */ showTabHeader: { type: BooleanConstructor; default: boolean; }; /** * Should save layout in window.beforeunload */ saveBeforeUnload: { type: BooleanConstructor; default: boolean; }; /** * Base layout config */ layoutConfig: { type: PropType; default: () => CodeLayoutSplitNConfig; }; /** * The direction of the root grid. * @default 'horizontal' */ rootGridDirection: { type: PropType<"vertical" | "horizontal">; default: string; }; }, { getRootGrid(): CodeLayoutSplitNGridInternal; getPanelByName(name: string): CodeLayoutPanelInternal | undefined; getGridByName(name: string): CodeLayoutSplitNGridInternal | undefined; /** * 移除面板操作流程 * * 1. 从父级网格移除当前面板 * 2. 检查是否还有其他面板 * 2.1 如果有,重新选择其他面板激活 * 2.2 如果没有,并且网格允许收缩,则收缩此网格 * 2.2.1 移除网格 * 2.2.2 如果父网格只剩余一个子网格, * 则收缩此子网格,将其与父网格替换 * * @param panel */ getActiveGird(): CodeLayoutSplitNGridInternal | undefined; getGridTreeDebugText(): string; activePanel(name: string): void; clearLayout(): void; saveLayout(): any; loadLayout(json: any, instantiatePanelCallback: (data: import('./SplitN').CodeLayoutSplitNPanel) => import('./SplitN').CodeLayoutSplitNPanel): void; }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { panelClose: (...args: any[]) => void; panelContextMenu: (...args: any[]) => void; panelActive: (...args: any[]) => void; panelDrop: (...args: any[]) => void; gridActive: (...args: any[]) => void; canLoadLayout: (...args: any[]) => void; canSaveLayout: (...args: any[]) => void; }, string, import('vue').PublicProps, Readonly; default: string; }; /** * Whether to display Tab components. When it is `true`, it supports multiple sub panels in one grid, and the components should be rendered in the tabContentRender slot; When it is `false`, only grid segmentation is supported and panel and drag functions are not supported. You should render the content yourself in gridRender. */ showTabHeader: { type: BooleanConstructor; default: boolean; }; /** * Should save layout in window.beforeunload */ saveBeforeUnload: { type: BooleanConstructor; default: boolean; }; /** * Base layout config */ layoutConfig: { type: PropType; default: () => CodeLayoutSplitNConfig; }; /** * The direction of the root grid. * @default 'horizontal' */ rootGridDirection: { type: PropType<"vertical" | "horizontal">; default: string; }; }>> & { onPanelClose?: ((...args: any[]) => any) | undefined; onPanelContextMenu?: ((...args: any[]) => any) | undefined; onPanelActive?: ((...args: any[]) => any) | undefined; onPanelDrop?: ((...args: any[]) => any) | undefined; onGridActive?: ((...args: any[]) => any) | undefined; onCanLoadLayout?: ((...args: any[]) => any) | undefined; onCanSaveLayout?: ((...args: any[]) => any) | undefined; }, { rootGridType: CodeLayoutGrid; showTabHeader: boolean; saveBeforeUnload: boolean; layoutConfig: CodeLayoutSplitNConfig; rootGridDirection: "vertical" | "horizontal"; }, {}>, any>; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };