-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
建議:基於page component的全局layout系統 #832
Labels
Comments
This was referenced Aug 17, 2018
或者可以用现在的路由配置的方案: https://github.com/umijs/umi/blob/master/packages/umi-build-dev/src/routes/fixtures/file-config/c/c.js /*
layout: Blank
title:
- c
- d
*/ |
比较支持类似nuxt.js类似的实现 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
sorrycc
pushed a commit
that referenced
this issue
Jun 23, 2022
… file (#832) * fix(bundler-webpack): Fix runtimePublicPath effects assets url in css file * fix(bundler-webpack): Add test * fix(bundler-webpack): code format
xierenyuan
pushed a commit
to xierenyuan/umi
that referenced
this issue
Jun 23, 2022
… file (umijs#832) * fix(bundler-webpack): Fix runtimePublicPath effects assets url in css file * fix(bundler-webpack): Add test * fix(bundler-webpack): code format
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
缘起
目前的umi只有一個全局的layout,用起來比較麻煩一點,建議可以參考Nuxt.js的全局layout方式
注意点
參考Nuxt.js的做法,透過page component中的static property去決定layout,具體的作法可能會像這樣
或是
目錄結構
比較要注意的有兩個部分:
参考
Nuxt.js layout
The text was updated successfully, but these errors were encountered: