Comments (4)
ef用的不就是er的model吗……
在 2014年2月12日,16:09,Virola [email protected] 写道:
目前在ER中只是触发了model的change事件,这个能不能考虑在EF里实现一下?
—
Reply to this email directly or view it on GitHub.
from ef.
嗯,因为ER的Model就没有实现model.set的时候自动更新视图的功能,而且我觉得这个功能在ef里实现更好一些,因为修改model更新esui的情况比较多见
from ef.
首先很遗憾的是,我的回答是 NO ,EF不会做这个事
其原因有几点:
- 以现有的ESUI的支持度,是没有办法做MVVM的双向绑定的。如果EF实现单向的刷新,那么就会变成一个单向绑定的MVVM模式,这在业界是一个很不成熟的模型,我不希望引入这样一个东西来让大家找不着北
- 完整的MVVM模型在规划中是存在的,名称叫MVVM Bundle,他是在ESUI + ER + EF之上的一个类似插件包的东西,会扩展ESUI提供控件的变动通知功能,再扩展EF来实现数据和控件的绑定,引入真正的
ViewModel
来支持,不过这个很久远,手头上我们还有更多必须要做的事
如果仍觉得有必要,我推荐你可以做一个EF的插件,类似er-track这样子,从外部扩展框架来实现你的需求。如果针对插件EF还未提供足够的功能或扩展点,可以提出我们尽量满足
from ef.
好吧。。 我研究研究这个插件
from ef.
Related Issues (20)
- ActionPanel添加比actionloaded更早的时机
- 增强ActionPanel中子Action与父Action的事件交互 HOT 6
- ActionDialog自动销毁时应该阻止默认行为
- 一个子视图的控件
- UIView可以传递Model本身 HOT 4
- ChildView中控件的Validate不会在提交时触发 HOT 7
- ActionDialog计算位置的问题 HOT 2
- FormView未处理view name问题
- [UIView]replaceValue接口支持调用UIView的方法 HOT 1
- [UIModel]formatters可否将执行scope指向当前model HOT 2
- 异步的View#render HOT 5
- ActionPanel,UIView viewContext不一致的问题 HOT 6
- 问题探讨关于ActionPanel.action HOT 2
- EF/UIView 在查找model值的时候有个隐含的bug HOT 7
- problem HOT 1
- 尽量使用get接口而非属性
- actionpanel用esui的方法监听不到事件 HOT 9
- ActionPanel和ActionDialog代理Action的事件
- 不再修改`uiEvents`
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 ef.