Giter Club home page Giter Club logo

Comments (2)

mengshang918 avatar mengshang918 commented on September 16, 2024

目前有两种方案支持修改数据

  1. 使用transform和parse中对表单数据进行处理。
  2. 使用afterAction对数据进行处理
    或许我们需要使transform和parse可以单独针对某一项做改动(参考:#69
  3. 属性配置添加转换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.

mengshang918 avatar mengshang918 commented on September 16, 2024

#117 已支持配置exportToString转换string

from drip-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.