diff --git a/components/collapse/Collapse.tsx b/components/collapse/Collapse.tsx index d077d6b8e4..29aac4e7c5 100644 --- a/components/collapse/Collapse.tsx +++ b/components/collapse/Collapse.tsx @@ -43,7 +43,7 @@ interface CollapseInterface extends React.FC { const Collapse: CollapseInterface = props => { const { getPrefixCls, direction } = React.useContext(ConfigContext); - const { prefixCls: customizePrefixCls, className = '', bordered, ghost } = props; + const { prefixCls: customizePrefixCls, className = '', bordered = true, ghost } = props; const prefixCls = getPrefixCls('collapse', customizePrefixCls); const getIconPosition = () => { @@ -83,6 +83,7 @@ const Collapse: CollapseInterface = props => { renderExpandIcon(panelProps)} prefixCls={prefixCls} className={collapseClassName} @@ -92,8 +93,4 @@ const Collapse: CollapseInterface = props => { Collapse.Panel = CollapsePanel; -Collapse.defaultProps = { - bordered: true, -}; - export default Collapse;