xiehuiqi220 / Aform
AForm 是组件化、自动化、模型驱动的表单开发框架,它可以极大地提高您开发信息系统的生产力!
Stars: ✭ 96
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Aform
Checkout.js
💳 Quickly capture payments with the best checkout flow for crowdfunding and product launches.
Stars: ✭ 92 (-4.17%)
Mutual labels: form
Antd Jsonschema Form
Aother ui implement for react-jsonschema-form
Stars: ✭ 86 (-10.42%)
Mutual labels: form
Redaxo yform
YForm für REDAXO 5 – Formulare im Frontend und Backend mit Verwaltung von Datenbank-Tabellen.
Stars: ✭ 60 (-37.5%)
Mutual labels: form
Formeditor
A form builder editor for Umbraco 7 - let your editors build forms easily with this free package.
Stars: ✭ 95 (-1.04%)
Mutual labels: form
Vue Rawmodel
RawModel.js plugin for Vue.js v2. Form validation has never been easier!
Stars: ✭ 79 (-17.71%)
Mutual labels: form
Just Validate
Lightweight (~4,5kb gzip) form validation in Javascript Vanilla, without dependencies, with customizable rules (including remote validation), customizable messages and customizable submit form with ajax helper.
Stars: ✭ 74 (-22.92%)
Mutual labels: form
Semantic forms
Form generators leveraging semantic web standards (RDF(S), OWL, SPARQL , ...
Stars: ✭ 63 (-34.37%)
Mutual labels: form
Ngx Dynamic Form Builder
FormBuilder + class-transformer + class-validator = dynamic form group builder for Angular10+
Stars: ✭ 93 (-3.12%)
Mutual labels: form
React Native Merlin
🧙 Simple web-like forms in react native.
Stars: ✭ 83 (-13.54%)
Mutual labels: form
Educenter Hugo
Educenter is an educational website template. It can be used as an online teaching platform, school and university websites
Stars: ✭ 96 (+0%)
Mutual labels: form
Talquei
🤖 Vue components to build webforms looking like a conversation
Stars: ✭ 90 (-6.25%)
Mutual labels: form
介绍
AForm 是工业级的表单解决方案,它基于声明式编程和模型驱动,做到了大部分工作的自动化,使用AForm,您仅需关心数据模型、数据约束和表单的最终展现,而无需关心表单的实现细节,对于大量使用表单的应用系统来说,AForm可以极大地提高您的生产力。
主要特点
- 声明式,易用,轻量,无依赖,无侵入
- 模型驱动,AForm认为模型即表单,表单即模型,您仅需关心数据模型,而无需关心表单实现细节
- 自动化,支持任意复杂的数据模型生成表单,如嵌套对象,数组
- 一站式,支持输入验证、数据适配、自定义样式、输入插件等几乎与表单相关的所有机制
- 全适配,支持所有浏览器和移动终端,从ie6到html5无缝支持
安装或引用
- 直接 clone 本仓库
git clone https://github.com/xiehuiqi220/AForm.git
- 使用 bower
bower install aform --save
- 使用 npm
npm install aform --save
- 直接下载 js源文件 aform.js
使用例子
var af = new AForm("target",{
className:"form-horizontal",
fields:{
"name":{label:"姓名"},
"age":{label:"年龄",type:"number"},
"education":{label:"教育经历",fields:{
school:{label:"学校"}
from:{label:"开始时间",type:"date"},
end:{label:"结束时间",type:"date"},
degree:{label:"学位",required:false,type:"select",datalist:["学士","硕士",""]}
}}
}
});
af.render({
"name": 1,
"age": 2,
"education":[{
school:"中国理工大学",from:"2004-9-1",end:"2008-7-1",degree:"学士"
},{
school:"中国文化大学",from:"2008-9-1",end:"2010-7-1",degree:"硕士"
}]
});
console.log(af.getJson());//将输出与渲染数据一致的json结构
文档
联系
任何问题,请联系我:[email protected],我会尽快回复,欢迎关注我公众号。
协议
[MIT license]
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].