diff --git a/components/collapse/CollapsePanel.tsx b/components/collapse/CollapsePanel.tsx index 93165eb79e..562f3dfa9b 100644 --- a/components/collapse/CollapsePanel.tsx +++ b/components/collapse/CollapsePanel.tsx @@ -10,6 +10,7 @@ export interface CollapsePanelProps { style?: React.CSSProperties; showArrow?: boolean; prefixCls?: string; + forceRender?: boolean; } export default class CollapsePanel extends React.Component { diff --git a/components/collapse/index.en-US.md b/components/collapse/index.en-US.md index 4f77f410b2..ca1ca66f21 100644 --- a/components/collapse/index.en-US.md +++ b/components/collapse/index.en-US.md @@ -30,3 +30,4 @@ A content area which can be collapsed and expanded. | header | Title of the panel | string\|ReactNode | - | | key | Unique key identifying the panel from among its siblings | string | - | | showArrow | If `false`, panel will not show arrow icon | boolean | `true` | +| forceRender | Forced render of content on panel, instead of lazy rending after clicking on header | boolean | `false` | diff --git a/components/collapse/index.zh-CN.md b/components/collapse/index.zh-CN.md index 599df707f1..37ac5d90e3 100644 --- a/components/collapse/index.zh-CN.md +++ b/components/collapse/index.zh-CN.md @@ -30,3 +30,4 @@ cols: 1 | disabled | 禁用后的面板展开与否将无法通过用户交互改变 | boolean | false | | header | 面板头内容 | string\|ReactNode | 无 | | key | 对应 activeKey | string | 无 | +| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false | diff --git a/package.json b/package.json index 422531a9ac..5cdcb65781 100755 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "rc-calendar": "~9.5.0", "rc-cascader": "~0.12.0", "rc-checkbox": "~2.1.1", - "rc-collapse": "~1.7.5", + "rc-collapse": "~1.8.0", "rc-dialog": "~7.1.0", "rc-dropdown": "~2.1.0", "rc-editor-mention": "^1.0.2",