Code Monkey home page Code Monkey logo

modeltovuecontrol's Introduction

modelToVueControl

后台模型映射成前台表单的小架构

这是一个把dto映射成页面控件的小架构;

主要目的是,反复把需要的实体转译成页面控件,正则验证,这种重复性的工作交给机器处理

两个标准:标准化的后台属性,即:对一个表的字段的所有描述;通过标签,以及类型解析方法来获取这些信息

标准化的前台解析,借助了vue引擎,最小的单元是一个控件,这样可以把它们渲染成不同的控件,适应不同的框架

如何得到后台属性集合:通过ajax一类的请求,通过代码把url映射到一个类型,并返回,最终页面明白如何解析它

----------------------------------------------------2020-3-18 11:59:39---------------------------------------

短期内不是很想维护了,主要是调试这个架构方面比较麻烦,入坑的人不易于理解架构它的初衷等等。不过还是追加优化了翻译动态页面的代码

easyui列的方法上面转换出来成正常js比较恶心人

modeltovuecontrol's People

Contributors

xianrui69 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cxc731003

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.