Update CollapsePanelProps -> onChange function (#7084)

parameter key should be either an array of string(general) or string(accordion mode), right?
This commit is contained in:
Tengjiao Cai 2017-08-04 11:00:36 +02:00 committed by 偏右
parent 4880b6ec16
commit 6e2ace3ba8

View File

@ -8,7 +8,7 @@ export interface CollapseProps {
defaultActiveKey?: Array<string>;
/** 手风琴效果 */
accordion?: boolean;
onChange?: (key: string) => void;
onChange?: (key: string | string[]) => void;
style?: React.CSSProperties;
className?: string;
bordered?: boolean;