Code Monkey home page Code Monkey logo

Comments (4)

otakustay avatar otakustay commented on May 27, 2024

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.

virola avatar virola commented on May 27, 2024

嗯,因为ER的Model就没有实现model.set的时候自动更新视图的功能,而且我觉得这个功能在ef里实现更好一些,因为修改model更新esui的情况比较多见

from ef.

otakustay avatar otakustay commented on May 27, 2024

首先很遗憾的是,我的回答是 NO ,EF不会做这个事

其原因有几点:

  1. 以现有的ESUI的支持度,是没有办法做MVVM的双向绑定的。如果EF实现单向的刷新,那么就会变成一个单向绑定的MVVM模式,这在业界是一个很不成熟的模型,我不希望引入这样一个东西来让大家找不着北
  2. 完整的MVVM模型在规划中是存在的,名称叫MVVM Bundle,他是在ESUI + ER + EF之上的一个类似插件包的东西,会扩展ESUI提供控件的变动通知功能,再扩展EF来实现数据和控件的绑定,引入真正的ViewModel来支持,不过这个很久远,手头上我们还有更多必须要做的事

如果仍觉得有必要,我推荐你可以做一个EF的插件,类似er-track这样子,从外部扩展框架来实现你的需求。如果针对插件EF还未提供足够的功能或扩展点,可以提出我们尽量满足

from ef.

virola avatar virola commented on May 27, 2024

好吧。。 我研究研究这个插件

from ef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.