UNPKG

oui-antd

Version:

An enterprise-class UI design language and React-based implementation

28 lines (27 loc) 851 B
import * as React from 'react'; import CollapsePanel from './CollapsePanel'; export interface CollapseProps { activeKey?: Array<string> | string; defaultActiveKey?: Array<string>; /** 手风琴效果 */ accordion?: boolean; destroyInactivePanel?: boolean; onChange?: (key: string | string[]) => void; style?: React.CSSProperties; className?: string; bordered?: boolean; prefixCls?: string; } export default class Collapse extends React.Component<CollapseProps, any> { static Panel: typeof CollapsePanel; static defaultProps: { prefixCls: string; bordered: boolean; openAnimation: { appear(): void; enter(node: HTMLElement, done: () => void): any; leave(node: HTMLElement, done: () => void): any; }; }; render(): JSX.Element; }