# form-generator-parser **Repository Path**: songjun520/form-generator-parser ## Basic Information - **Project Name**: form-generator-parser - **Description**: 动态表单。form-generator 表单生成器,uniapp小程序端解析器 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-02-18 - **Last Updated**: 2023-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [form-generator 表单生成器地址](http://www.jayui.com/#/) [项目gitee地址](https://gitee.com/liang1022/form-generator-parser) 作者QQ:291294950 兄弟萌,上班时间少,这两天我抽时间完善下备注说明。这个项目供参考,提供思路。 主要是用于打通PC端、移动端自定义动态表单生成。项目修改了uview源码用于表单验证。讲道理只要处理数据转为标准数据格式都可以使用。 因为uview表单验证number类型不通过验证,故修改了uview的一点源码组件(其实就是把组件$emit事件的值转化为String字符串类型)如下: 计数器组件:u-number-box 搜索 原来为: this.$emit('input', Number(value)); value: Number(value), 修改为: this.$emit('input', String(value)); value: String(value), 评分组件:u-rate 搜索 原来为: this.$emit('change', this.activeIndex) this.$emit('input', this.activeIndex) 修改为: this.$emit('change', String(this.activeIndex)) this.$emit('input', String(this.activeIndex)) 上传组件:u-upload 搜索 原来为: this.showToast('超出允许的文件大小'); 修改为: this.showToast(`超出允许的文件大小${this.maxSize / 1024 /1024}M`); 备注: 如果报错误TypeError: Cannot read property 'model' of undefined 尝试修改组件oFormParser里面setTimeout 延迟时间加长。 兄弟萌下载示例工程看,或者gitee地址clone本地跑。