iview+form-create实现一个表单页面效果代码
代码语言:html
所属分类:表单美化
代码描述:iview+form-create实现一个表单页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1.js"></script> <!-- import Vue --> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/iview.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/iview.min.js"></script> <!-- import formCreate --> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/form-create.iview.js"></script> <style> </style> </head> <body> <div id="app"> <form-create :rule="rule" v-model="fApi" :option="options" /> </div> <script> new Vue({ el: '#app', data() { return { fApi: {}, options: { onSubmit: (formData)=> { alert(JSON.stringify(formData)) }, rese.........完整代码请登录后点击上方下载按钮下载查看
网友评论0