Comments (7)
好像知道了,把layout
配置里的两个选项都打开就行了,一时没转过来,建议在文档里加个tips之类的,比较方便使用的人
from plugin-layout.
好像知道了,把
layout
配置里的两个选项都打开就行了,一时没转过来,建议在文档里加个tips之类的,比较方便使用的人
哪两个配置选项呀,大哥说清楚呀
from plugin-layout.
好像知道了,把
layout
配置里的两个选项都打开就行了,一时没转过来,建议在文档里加个tips之类的,比较方便使用的人哪两个配置选项呀,大哥说清楚呀
文档里的layout配置项不是就两个么?
from plugin-layout.
不止两个呀?编译时配置和运行时配置就不止两个了,比如name, logo, locale。请问能说清楚吗?
from plugin-layout.
我说的是配置项里有个layout配置项,没看到?
from plugin-layout.
现在看到了。hideMenu、hideNav只是隐藏。整个路由还是在pro-layout的布局里。
插件编写里我觉得应该这里不应该写死强制套用在/
路由下,应该作为配置项给用户配置
Lines 46 to 52 in 674dda5
from plugin-layout.
`
routes: [
{
path: '/user',
component: '../layouts/UserLayout',
layout: {
hideMenu: true,
// hideNav: true,
},
routes: [
{
name: 'login',
path: '/user/login',
component: '@/pages/user/login',
},
],
},
{ path: '/', component: '@/pages/index' },
{ component: '@/pages/404' },
],
`
from plugin-layout.
Related Issues (13)
- [功能请求] patchMenus 增加initialState 支持
- bug不能正确获得menu信息 HOT 1
- [feature] suggest to support i18n Exception [需求] 建议支持 Exception 页面 i18n HOT 2
- 一些技术问题
- [需求]支持路由配置不同layout
- 配置内如何使用本地logo文件
- umi3下 配置base路径后,菜单无法识别,面包屑无法显示 HOT 1
- hash 路由模式时菜单不能正常选中 HOT 1
- Error
- ErrorComponet配置不生效,不起作用,还是指向的默认的ProError组件
- 如何扩展BasicLayout的内容区域?
- 自定义 collapsedButton 时 collapsed 无法更新 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-layout.