type: narrow Collapse onChange argument to string[] (#50754)

This commit is contained in:
yuanliu 2024-09-08 12:03:30 +08:00 committed by GitHub
parent ac5bb7cbeb
commit 5003f0573b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ export interface CollapseProps extends Pick<RcCollapseProps, 'items'> {
/** 手风琴效果 */
accordion?: boolean;
destroyInactivePanel?: boolean;
onChange?: (key: string | string[]) => void;
onChange?: (key: string[]) => void;
style?: React.CSSProperties;
className?: string;
rootClassName?: string;