///
import { RenderPropsCore } from '../type/core';
import { noop } from '../type';
import PageBasePlugin from '../utils/PageBasePlugin';
declare type LeftSidePanelUniqueKey = string;
export interface AddLeftPanelOpts {
/**
* tabpanel唯一标识
*/
key: LeftSidePanelUniqueKey;
/**
* 渲染组件
*/
ComponentElement: React.ComponentClass | React.FunctionComponent;
/**
* 获取渲染组件的方法
* @param opts
* @returns
*/
props?: (opts: RenderPropsCore) => Record;
/**
* tab的图标
*/
icon: {
props?: (opts: {
active: boolean;
}) => Record;
ComponentElement: React.ComponentClass | React.FunctionComponent;
};
/**
* tab的名称
*/
title: string;
}
declare class leftSidePanelPlugin extends PageBasePlugin {
panels: AddLeftPanelOpts[];
activeKey?: string;
onSaveBefore?: noop;
onSaveAfter?: noop;
private get;
private getKey;
add(panelOpts: AddLeftPanelOpts): void;
setActiveKey(activeKey: string): void;
}
export default leftSidePanelPlugin;