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

🧐[问题]Watermark组件如何添加全局水印,我没有用layouts组件,用的运行时配置app.tsx里面的layout函数 #9020

Open
jwenxuan opened this issue Feb 18, 2025 · 2 comments

Comments

@jwenxuan
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

💻 示例代码

🚑 其他信息

@zhaohuaxuan
Copy link

zhaohuaxuan commented Feb 21, 2025

childrenRender:PageContainer包裹children,
waterMarkProps={{
content: 'Pro Layout',
}}

@jwenxuan
Copy link
Author

export const layout: RunTimeLayoutConfig = ({ initialState }) => {
const { userMe } = initialState || {};

return {
rightContentRender: () => ,
footerRender: () =>

,
menuHeaderRender: undefined,
childrenRender: (children) => {children},
waterMarkProps: {
content: 'Pro Layout',
},
...initialState?.settings,
};
}; 不太行啊,这样可以加,但是左侧菜单栏中没有水印

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

2 participants