form-create+vue+element ui实现json数组生成表单提交效果代码
代码语言:html
所属分类:表单美化
代码描述:form-create+vue+element ui实现json数组生成表单提交效果代码
代码标签: form-create vue element ui json 数组 生成 表单 提交
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/elementui.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/elementui.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/province_city_area.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/form-create.min.js"></script> <style> </style> </head> <body> <div id="app1" style="padding:20px;"> <form-create v-model="fApi" :rule="rule" :option="option"></form-create> </div> <script> new Vue({ el: '#app1', data: { //实例对象 fApi:{}, //表单生成规则 rule:[ { "type": "input", "field": "47q1nt7tg2mm0", "title": "输入框", .........完整代码请登录后点击上方下载按钮下载查看
网友评论0