Skip to content

Commit c66177b

Browse files
authored
fix: page-header backIcon not hide when set false
fix: page-header组件设置backIcon为false,隐藏backIcon失败问题
2 parents 5c3d732 + f8dbe51 commit c66177b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/page-header/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const renderTitle = (h, prefixCls, instance) => {
5656
const subTitle = getComponentFromProp(instance, 'subTitle');
5757
const tags = getComponentFromProp(instance, 'tags');
5858
const extra = getComponentFromProp(instance, 'extra');
59-
const backIcon = getComponentFromProp(instance, 'backIcon') || <Icon type="arrow-left" />;
59+
const backIcon = getComponentFromProp(instance, 'backIcon') !== undefined ? getComponentFromProp(instance, 'backIcon') : <Icon type="arrow-left" />;
6060
const onBack = instance.$listeners.back;
6161
const headingPrefixCls = `${prefixCls}-heading`;
6262
if (title || subTitle || tags || extra) {

0 commit comments

Comments
 (0)