Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class CollapsePanel extends Component {
showArrow,
destroyInactivePanel,
} = this.props;
const headerCls = `${prefixCls}-header ${headerClass}`;
const headerCls = classNames(`${prefixCls}-header`, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还能这么用,不错

[headerClass]: headerClass,
});
const itemCls = classNames({
[`${prefixCls}-item`]: true,
[`${prefixCls}-item-active`]: isActive,
Expand Down