Giter Site home page Giter Site logo

Comments (6)

eternalsky avatar eternalsky commented on July 2, 2024

antd 也是类似的方式来管理的,因为表单值的操作很多,包括设置、重置、校验等等,不通过一个对象实例来管理感觉也没有更简单的办法。如果你有,可以提 RFC,我们可以考虑支持。如果你只是为了赋值,也可以使用 Form 的 value 属性,你不传入 field 的时候,Form 内部自己也会初始化 Field,可以通过 saveField 回调拿到这个内部自己初始化的。

from next.

lxzy-yun avatar lxzy-yun commented on July 2, 2024

建议使用formily2.0

from next.

eternalsky avatar eternalsky commented on July 2, 2024

建议使用formily2.0

formily 也要初始化 form 实例,在这个 issue 讨论的范围内没有看到有什么不同。

from next.

ming001 avatar ming001 commented on July 2, 2024

我想使用的场景很简单,给表单一个初始值,用户填写信息后,提交给接口,这么简单的动作,还要再初始化一个field,太复杂了

from next.

eternalsky avatar eternalsky commented on July 2, 2024

我想使用的场景很简单,给表单一个初始值,用户填写信息后,提交给接口,这么简单的动作,还要再初始化一个field,太复杂了

看上面的第一条回复,可以不用初始化 field。

from next.

github-actions avatar github-actions commented on July 2, 2024

你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭

from next.

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.