chore: form tabs active change

This commit is contained in:
jialin
2026-02-12 12:20:05 +08:00
parent 07664b5f22
commit 978d327bcd
10 changed files with 175 additions and 43 deletions
@@ -33,9 +33,10 @@ const CollapsePanel: React.FC<{
items: CollapseProps['items'];
activeKey: string | string[];
accordion?: boolean;
defaultActiveKey?: string | string[];
onChange?: (key: string | string[]) => void;
styles?: Record<string, React.CSSProperties>;
}> = ({ items, activeKey, accordion, onChange, styles }) => {
}> = ({ items, activeKey, accordion, defaultActiveKey, onChange, styles }) => {
return (
<CollapseInner
expandIconPlacement="start"
@@ -43,6 +44,7 @@ const CollapsePanel: React.FC<{
ghost
accordion={accordion}
activeKey={activeKey}
defaultActiveKey={defaultActiveKey}
onChange={onChange}
destroyOnHidden={false}
styles={{