@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
51 lines (50 loc) • 1.02 kB
TypeScript
import * as React from 'react';
interface IPanelProps {
/**
* 当前panel的key
*/
panelKey?: string;
/**
* tab的标题
*/
title: string;
/**
* 当前panel是都激活
*/
isActive?: boolean;
/**
* title的样式
*/
titleClassName?: string;
/**
* content的样式
*/
contentClassName?: string;
/**
* 容器样式
*/
className?: string;
/**
* panel折叠状态发生变化
*/
onToggle?: (isActive: boolean, key?: string) => void;
/**
* 是否禁止toggle
*/
disableToggle?: boolean;
}
/**
* 折叠面板组件封装
*/
export default class Panel extends React.Component<IPanelProps, any> {
static defaultProps: {
isActive: boolean;
disabled: boolean;
};
isActive: boolean;
setIsActive(isActive: boolean): void;
onTogglePanel(): void;
componentWillReceiveProps(nextProps: IPanelProps): void;
render(): React.JSX.Element;
}
export {};