Comments (5)
没理解问题,你就把 useKeepOutlets 当 Outlet 使用,不能满足吗 ?
from alita.
没理解问题,你就把 useKeepOutlets 当 Outlet 使用,不能满足吗 ?
Outlet 组件可以传递context,比如<Outlet context={{ prop: 'from Layout'}} />,useKeepOutlets 可以支持context传递吗?
from alita.
用了useKeepOutlets 后,我需要在哪里注入context
from alita.
不理解你要做什么,可以给一个 demo
我的习惯自己需要 context 应该自己再搞一层?而不是通过 Outlet 传递?没这么用过有什么“小技巧”吗?
from alita.
不理解你要做什么,可以给一个 demo 我的习惯自己需要 context 应该自己再搞一层?而不是通过 Outlet 传递?没这么用过有什么“小技巧”吗?
就比如图里,我在layout index 中设置了一个全局loading,这样子页面都可以直接用,但是某些页面例如列表页需要用到keep-alive功能,但是也需要loading,所以不能同时在index里面实现,需要套多一层吗?
from alita.
Related Issues (20)
- [bug] mobileLayout使用ant-mobile5时配置tabbar selectedColor, color不生效 HOT 1
- 请问如何在 create-umi@latest脚手架搭建的项目中使用keepalive 和 tabsLayout HOT 2
- keepalive如何在components/hooks外清空其他tabs HOT 2
- 你官方的加载也太慢了,能否调整一下 HOT 3
- BasicLayout warn
- 自定义 tabbar
- chalk 在浏览器打印图片怎么一直不显示呀 HOT 4
- keepalive问题 HOT 2
- 多标签页tabsLayout能否支持通过tabsLayout运行时单独设置Tabs的属性呢? HOT 1
- closeTab 方法报错,没有正确引入 message HOT 5
- 是否可以添加个属性修改tabBarExtraContent的按钮属性
- 自定义插件命令执行时,locale报错:AssertionError [ERR_ASSERTION]: Invalid config keys: locale
- alita 是否后续会支持打包生成小程序呢~ HOT 2
- keepalive 如何判断当前激活页面
- keepalive不支持redirect
- aconsole 调试配置能不能开放开关选项 HOT 2
- 多标签tabs关闭最后一个标签会出现页面崩溃问题 HOT 3
- 项目刚开始加载的加载动画可以自定义吗?或者改变加载icon的颜色 HOT 1
- menuProps: { mode: 'vertical', },模式下,二级菜单打开页面时,弹窗会再次弹出。有没有解决方法 HOT 3
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 alita.