Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4 底部的“2019 蚂蚁金服体验技术部出品”怎么配置,这玩意怎么写死在layout footer里面了 #4414

Closed
vipway opened this issue Jun 10, 2019 · 4 comments

Comments

@vipway
Copy link

vipway commented Jun 10, 2019

V4 底部的“2019 蚂蚁金服体验技术部出品”怎么配置,这玩意怎么写死在layout footer里面了

@xiaohuoni
Copy link
Member

通过 footerRender 属性重制掉就可以了。

@chenshuai2144
Copy link
Collaborator

https://github.com/ant-design/ant-design-pro/blob/master/src/layouts/BasicLayout.tsx#L44

@yinhunfeixue
Copy link

const footerRender: BasicLayoutProps['footerRender'] = (_, defaultDom) => {
return React.cloneElement(defaultDom as ReactElement, { links: [], copyright: '你的公司名称’ });
}

@kennylbj
Copy link
Contributor

kennylbj commented Sep 6, 2019

这里设计的不大合理,如果用户要重置footer,需要clone defaultDom,没法直接给links、copyright这两个属性赋值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants