fix: collapse组件设置collapsable时样式修复 (#3145)

Co-authored-by: hongyang03 <hongyang03@baidu.com>
This commit is contained in:
HongYang 2021-12-06 10:26:28 +08:00 committed by GitHub
parent a57d976e98
commit 6d5016d526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ export class Collapse extends React.Component<CollapseProps, CollapseState> {
{
'is-active': !this.state.collapsed,
[`Collapse--${size}`]: size,
'Collapse--disabled': disabled || collapsable === false,
'Collapse--disabled': disabled,
'Collapse--title-bottom': headerPosition === 'bottom'
},
className