diff --git a/components/collapse/CollapsePanel.tsx b/components/collapse/CollapsePanel.tsx index 631c75fc9a..586d6739a0 100644 --- a/components/collapse/CollapsePanel.tsx +++ b/components/collapse/CollapsePanel.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { ConfigContext } from '../config-provider'; import warning from '../_util/warning'; -export type CollapsibleType = 'header' | 'disabled'; +export type CollapsibleType = 'header' | 'icon' | 'disabled'; export interface CollapsePanelProps { key: string | number; diff --git a/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap index 955a9afd70..5d6e3ea00e 100644 --- a/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/collapse/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -475,6 +475,67 @@ exports[`renders ./components/collapse/demo/collapsible.md extend context correc +
{text}
+{text}
+{text}
diff --git a/components/collapse/index.en-US.md b/components/collapse/index.en-US.md index 78aa6e98c3..fad6a78480 100644 --- a/components/collapse/index.en-US.md +++ b/components/collapse/index.en-US.md @@ -22,7 +22,7 @@ A content area which can be collapsed and expanded. | accordion | If true, Collapse renders as Accordion | boolean | false | | | activeKey | Key of the active panel | string\[] \| string