mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
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:
parent
4880b6ec16
commit
6e2ace3ba8
@ -8,7 +8,7 @@ export interface CollapseProps {
|
|||||||
defaultActiveKey?: Array<string>;
|
defaultActiveKey?: Array<string>;
|
||||||
/** 手风琴效果 */
|
/** 手风琴效果 */
|
||||||
accordion?: boolean;
|
accordion?: boolean;
|
||||||
onChange?: (key: string) => void;
|
onChange?: (key: string | string[]) => void;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
className?: string;
|
className?: string;
|
||||||
bordered?: boolean;
|
bordered?: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user