Comments (6)
antd 也是类似的方式来管理的,因为表单值的操作很多,包括设置、重置、校验等等,不通过一个对象实例来管理感觉也没有更简单的办法。如果你有,可以提 RFC,我们可以考虑支持。如果你只是为了赋值,也可以使用 Form 的 value 属性,你不传入 field 的时候,Form 内部自己也会初始化 Field,可以通过 saveField 回调拿到这个内部自己初始化的。
from next.
建议使用formily2.0
from next.
建议使用formily2.0
formily 也要初始化 form 实例,在这个 issue 讨论的范围内没有看到有什么不同。
from next.
我想使用的场景很简单,给表单一个初始值,用户填写信息后,提交给接口,这么简单的动作,还要再初始化一个field,太复杂了
from next.
我想使用的场景很简单,给表单一个初始值,用户填写信息后,提交给接口,这么简单的动作,还要再初始化一个field,太复杂了
看上面的第一条回复,可以不用初始化 field。
from next.
你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭
from next.
Related Issues (20)
- [Select]select组件开启搜索后支持多次全选 HOT 1
- [NumberPicker]在iPad上数值组件单击无法导出键盘 HOT 4
- [Step]1.27.6 以上版本 Step direction 属性不兼容原有 vertical horizontal 值,渲染结果不符合预期
- [List]dataSource的属性无法透传到renderItem HOT 2
- [Switch]Switch无法使用field的默认值 HOT 3
- [Table]使用 lock 时,表头 sort 行为异常 HOT 5
- [Tree]Could we set virtualListProps for <Tree> Component? HOT 2
- [Dialog]在 dialog 容器里 使用select 的跟随滚动会存在select弹层被覆盖的问题 HOT 2
- [Upload]Upload.Dragger的itemRender不生效 HOT 3
- [Select]Select组件怎么覆盖无障碍操作 HOT 3
- [Tree]【Tree】组件如何实现点击加载更多 HOT 2
- [Message]Message组件样式问题(icon和文字没有对齐) HOT 3
- [Upload]Upload组件手动上传第一次接口报错后,再点击上传,没有调用接口 HOT 1
- [Message]Dialog 套Message,Message的Icon 会被覆盖掉
- [Field]field.setValue支持传递值泛型 HOT 2
- [TreeSelect]label 超长后会出现没对齐的问题 HOT 1
- [Affix]有没有vue版本的 HOT 4
- [Balloon]Balloon v1,v2版本箭头距元素的间距不一致 HOT 1
- [Select]Select.AutoComplete与Field混合使用时无法在重置Field后正确重置可选项 HOT 2
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 next.