vueJsonSchemaForm根据json生成form表单效果代码
代码语言:html
所属分类:加载滚动
代码描述:vueJsonSchemaForm根据json生成form表单效果代码,支持element-ui
下面为部分代码预览,完整代码请点击下载或在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" /> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/element-ui.2.15.1.css"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/polyfill.umd.min.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/element-ui.2.15.1.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vueJsonSchemaForm.umd.min.js"></script> </head> <body> <div id="app"> <vue-form v-model="formData" :ui-schema="uiSchema" :schema="schema"> </vue-form> </div> <script> var Main = { name: 'Demo', data() { return { formData: {}, schema: { type:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0