fix: page-header backIcon not hide when set false
fix: page-header组件设置backIcon为false,隐藏backIcon失败问题pull/2005/head
commit
c66177be6a
|
@ -56,7 +56,7 @@ const renderTitle = (h, prefixCls, instance) => {
|
|||
const subTitle = getComponentFromProp(instance, 'subTitle');
|
||||
const tags = getComponentFromProp(instance, 'tags');
|
||||
const extra = getComponentFromProp(instance, 'extra');
|
||||
const backIcon = getComponentFromProp(instance, 'backIcon') || <Icon type="arrow-left" />;
|
||||
const backIcon = getComponentFromProp(instance, 'backIcon') !== undefined ? getComponentFromProp(instance, 'backIcon') : <Icon type="arrow-left" />;
|
||||
const onBack = instance.$listeners.back;
|
||||
const headingPrefixCls = `${prefixCls}-heading`;
|
||||
if (title || subTitle || tags || extra) {
|
||||
|
|
Loading…
Reference in New Issue