import { default as React } from 'react'; import { SplitterProps as AntSplitterProps } from 'antd'; import { BaseComponentProps } from '../../types/common'; /** * Splitter Panel 配置接口 */ export interface SplitterPanelConfig { /** 面板唯一标识 */ key: string; /** 默认尺寸 (数字或百分比字符串) */ defaultSize?: number | string; /** 最小尺寸 */ min?: number | string; /** 最大尺寸 */ max?: number | string; /** 是否可折叠 */ collapsible?: boolean | { start?: boolean; end?: boolean; showCollapsibleIcon?: boolean | 'auto'; }; /** 是否可调整大小 */ resizable?: boolean; } /** * Semantic DOM 样式配置 */ export interface SplitterSemanticStyles { root?: React.CSSProperties; panel?: React.CSSProperties | ((info: { index: number; }) => React.CSSProperties); dragger?: React.CSSProperties; } /** * AndSplitter 组件属性 */ export interface AndSplitterProps extends Omit, BaseComponentProps { /** 面板配置列表 */ panels?: SplitterPanelConfig[] | string; /** 布局方向 (orientation in Ant Design 6.x) */ orientation?: 'horizontal' | 'vertical'; /** 延迟渲染模式 */ lazy?: boolean; /** 拖拽图标 (图标名称字符串) */ draggerIcon?: string; /** 折叠图标 (start/end 图标名称字符串) */ collapsibleIcon?: { start?: string; end?: string; } | string; /** 调整大小时的动作 */ resizeAction?: string; /** 调整大小结束时的动作 */ resizeEndAction?: string; /** 自定义 onResize */ onResize?: (sizes: number[]) => void; /** 自定义 onResizeEnd */ onResizeEnd?: (sizes: number[]) => void; /** Design Token */ token?: Record | string; /** 子组件 (用于运行时渲染) */ children?: React.ReactNode; /** 面板内容渲染函数 (用于编辑器模式) */ renderPanelContent?: (panelKey: string, index: number) => React.ReactNode; } /** * AndSplitter 组件 * 基于 Ant Design Splitter,支持可视化配置 */ export declare const AndSplitter: React.FC; /** * AndSplitterPanel 组件 * 仅用于作为 AndSplitter 的子组件容器,实际的分隔面板逻辑由 AndSplitter 处理 * 此组件主要用于编辑器识别和属性传递 */ export declare const AndSplitterPanel: React.FC; export default AndSplitter; //# sourceMappingURL=index.d.ts.map