@gzued/antd-compiled
Version:
Pre-bundled Ant Design 4.x and related dependencies for @gzued packages
25 lines (24 loc) • 1.04 kB
TypeScript
import * as React from 'react';
import type { CollapseProps } from './interface';
import CollapsePanel from './Panel';
export interface CollapseState {
activeKey: React.Key[];
}
declare class Collapse extends React.Component<CollapseProps, CollapseState> {
static defaultProps: {
prefixCls: string;
onChange(): void;
accordion: boolean;
destroyInactivePanel: boolean;
};
static Panel: typeof CollapsePanel;
constructor(props: CollapseProps);
shouldComponentUpdate(nextProps: CollapseProps, nextState: CollapseState): boolean;
onClickItem: (key: React.Key) => void;
static getDerivedStateFromProps(nextProps: CollapseProps): Partial<CollapseState>;
getNewChild: (child: React.ReactElement, index: number) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
getItems: () => React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
setActiveKey: (activeKey: React.Key[]) => void;
render(): JSX.Element;
}
export default Collapse;