Comments (12)
没问题
from react-admin.
麻烦问问在哪儿做修改哟?
from react-admin.
现在还不能,得重新做的
有一个src/components/Bread
组件
得把它改成支持Tab的形式
from react-admin.
好的。感谢
from react-admin.
hi,我更新了一下:
在src/layouts/BasicLayout.tsx
中,
打开第28行注释 和 第134~138行注释,并注释第132行普通面包屑导航, 就会变成Tab导航了:
import BreadTab from "@/components/BreadTab"; // Tab方式的导航
<BreadTab
menus={props.userinfo.menus}
location={props.location}
history={props.history}
/>
from react-admin.
嗯嗯。我也做了一个,还是非常感谢,不过我觉得你的这个路由不合理呀
from react-admin.
哪里不合理呀..
可能我路由的匹配写得比较简单,一些复杂的情况没考虑
from react-admin.
主要是我切换tab的时候,每次都要重启加载数据,这样感觉会影响使用
from react-admin.
我发现如果不让在切换tab的时候不重新加载数据的话,改动还比较大!
from react-admin.
对啊,切换tab只是切换了路由
我懂你说的那种就得把页面放在Tab页里。
可以用这个缓存需要被缓存的页面:https://github.com/CJY0208/react-router-cache-route/blob/master/README_CN.md
我之前弄过,后来不记得为什么没了,有空我在弄一下吧。
from react-admin.
感谢感谢。你太给力了。。
from react-admin.
嘿,我加了react-router-cache-route
,
详见src/layouts/BasicLayout.tsx
中的CacheRoute
,
from react-admin.
Related Issues (19)
- 我把typescript升级到3.9.5报错 HOT 2
- "类型“never”上不存在属性“userinfo"之类的这种错误,是怎么回事呀? HOT 1
- 从master下载,执行yarn后,报kleur' do not define a valid './colors' target HOT 3
- 请问:在不使用mock的情况下,怎么配置地址呢,可能会存在多个环境,地址需要根据环境改变,类似于转发 HOT 2
- 您好 想请教一下项目中设置了请求头"Content-Type": "application/x-www-form-urlencoded; charset=utf-8",格式,post请求怎么转换为右边中的格式呢 HOT 2
- 项目本地运行,耗时太久了, 5-6分钟才能起起来 HOT 3
- 响应式 HOT 1
- 鑫哥带我 HOT 1
- dispatch.app.updateUserInfo()缺少参数 HOT 8
- 下载依赖包失败 HOT 1
- 亲测:yarn build 报错 HOT 1
- antd 例如时间选择器等不能中文化
- 可以提供 typescript版本的吗? HOT 1
- 好多warning HOT 5
- 关于跨域问题 HOT 7
- 配置@导入组件 HOT 2
- 请问rematch有没有页面级别的model HOT 1
- 可以提供 umi3 ts版本的吗,哈哈哈 HOT 1
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 react-admin.