-
Notifications
You must be signed in to change notification settings - Fork 169
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
View不能很好的自定义container #22
Comments
参考 #5 ,因为暂时还没实现 在完整设想的ER中,完成你的功能有几个方法:
你提的问题确实是没有考虑周全的(不包含非子Action也有这样的需求),因此会再额外加一个入口:
不知这样的解决方式是否能满足你的要求,如果有其它没顾及到的,请继续说明 |
解决方法倒是蛮多的,但就像你说的Action.prototype.createModel.apply这样感觉总是怪怪的。不过现在还没到强制使用的地步,先等renderChildAction实现,大家或多或少都需要这个。我继续看其他功能。 |
在 80639d8 中加了一个功能,如果Action的 |
没人讨论,这个方案已经执行,后续有其它需求再打开。 |
原ER框架里有loadSubByPath,这里是可以自定义view的container的,也就是用view实现了局部刷新。现在的ER里的container全部都指向了config里的mainElement,仅能在url里添加container参数达到刷新指定DOM的效果。虽然也可以自己添加路由解决这个问题,但总感觉这里被做死了,请指教。
The text was updated successfully, but these errors were encountered: