mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 20:18:22 +08:00
fix: page-header组件设置backIcon为false,隐藏backIcon失败问题
This commit is contained in:
parent
caa0a6489a
commit
f8dbe516d9
@ -56,7 +56,7 @@ const renderTitle = (h, prefixCls, instance) => {
|
|||||||
const subTitle = getComponentFromProp(instance, 'subTitle');
|
const subTitle = getComponentFromProp(instance, 'subTitle');
|
||||||
const tags = getComponentFromProp(instance, 'tags');
|
const tags = getComponentFromProp(instance, 'tags');
|
||||||
const extra = getComponentFromProp(instance, 'extra');
|
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 onBack = instance.$listeners.back;
|
||||||
const headingPrefixCls = `${prefixCls}-heading`;
|
const headingPrefixCls = `${prefixCls}-heading`;
|
||||||
if (title || subTitle || tags || extra) {
|
if (title || subTitle || tags || extra) {
|
||||||
|
Loading…
Reference in New Issue
Block a user