Comments (2)
目前有两种方案支持修改数据
- 使用transform和parse中对表单数据进行处理。
使用afterAction对数据进行处理
或许我们需要使transform和parse可以单独针对某一项做改动(参考:#69)- 属性配置添加转换string类型字段
目前存在的问题,由于upload组件存在上传一个文件和多个文件的情况,upload组件默认是object类型。如果需要默认转换为string类型,那JSONSchema当前组件的type就是['string','object','array']。当type是多类型的时候,对typeMap和generator的使用dataSchema.type的地方有影响。typeMap影响到get、set、merge等dispatch语法糖函数。我们需要在任何情况下保证获取表单数据都是string,需要对以上函数做处理。考虑到后期可能支持 #69 提议,改动影响较大。详细设计方案后同 #69 一起进入开发。开发进度可关注当前issue或 #69 提议
总结:目前可以先采用方案一实现,后续等方案三支持后可以切换
from drip-form.
#117 已支持配置exportToString转换string
from drip-form.
Related Issues (20)
- [Bug] 时间选择器和日期选择器,开启范围,设置默认时间/占位符不生效 HOT 1
- [Bug] <title>formData 初始化时和提交时的数据错误 HOT 4
- feat: 自定义ajv配置 HOT 1
- 输入框使用问题
- 主文档内容错误
- [Bug] 引入的主题包中组件悬浮提示没有效果 HOT 1
- 1234
- [Bug] changeFieldKey报错 HOT 1
- 当unitedSchema全局validateTIme为submit或click时,表单校验字段不显示 HOT 4
- [generator]A trash bin is needed to discard the wrong components I have dragged
- 希望右侧属性配置区域的组件类型和fieldKey 可以支持设置disabled,在编辑时组件类型和fieldKey 不支持修改
- [Bug] 开发环境下,form渲染组件,控制台有 containerStyle warning提示,比较影响日志调试 HOT 1
- feature(form): support common event callback
- drip-form渲染表单数组时录入的数据项过多导致查看不方便问题
- drip-form录入数据后,删除数据不友好问题
- suppport ie11? HOT 1
- [Feature] 希望提供onChange api 来支持用户获取formData的变化 HOT 1
- [Bug] 开发环境下,form渲染组件,控制台有 formMode warning提示,比较影响日志调试 HOT 1
- ./node_modules/@monaco-editor/react/dist/index.mjs HOT 5
- 使用的antd 配置了主题色,按照了@jdfed/form-generator 会把原本项目的主题色会覆盖。 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drip-form.