UNPKG

zent

Version:

一套前端设计语言和基于React的实现

31 lines (30 loc) 871 B
import { Component } from 'react'; import { IDisabledContext } from '../disabled'; export interface ICollapsePanelProps { title: React.ReactNode; disabled?: boolean; showArrow: boolean; style?: React.CSSProperties; className?: string; active?: boolean; onChange?(key: string, active: boolean): void; panelKey?: string; panelTitleBackground?: string; showContentBackground?: boolean; isLast?: boolean; bordered?: boolean; extra?: React.ReactNode; } export declare class CollapsePanel extends Component<ICollapsePanelProps> { static defaultProps: { showArrow: boolean; }; static contextType: import("react").Context<IDisabledContext>; context: IDisabledContext; state: { animateAppear: boolean; }; render(): JSX.Element; toggle: () => void; } export default CollapsePanel;