New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add StateForm #292
Closed
Closed
feat: Add StateForm #292
Changes from 2 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
9b28f9d
init StateForm
zombieJ 856f06b
tmp test
zombieJ 5239a95
External store
zombieJ 19680c1
support render props
zombieJ 8039e35
add now
zombieJ d6ac84c
lock rc-tools version
zombieJ 46744ab
sample of useForm
zombieJ 115dcbd
use getFieldsValue instead of getStore
zombieJ a8ea903
render props also support component update check
zombieJ 3a84a85
adjust value check logic
zombieJ 6179901
add trigger
zombieJ 725d772
fix ts error
zombieJ cbaa78f
register Field directly
zombieJ ae1b74b
add isSimular
zombieJ d8c8745
update demo
zombieJ a5f178a
render props validate
zombieJ 6603f3e
cache error
zombieJ 803aa91
remove should component update
zombieJ d7222eb
add description
zombieJ d366fb4
update validate logic
zombieJ b5a293c
update gitignore
zombieJ c9e8172
update submit logic
zombieJ 10db2e1
add keys
zombieJ 7a8420f
update setFieldsValue logic
zombieJ 34db7ce
support lazy notify Field
zombieJ 0069125
style layout
zombieJ b892fa6
wrap useForm
zombieJ 885dd1d
fix error logic
zombieJ c76d008
support single validateTrigger
zombieJ ad88444
add getFieldValue
zombieJ 2a97baa
support touch
zombieJ 5ea94dc
support isFieldValidating
zombieJ 1b93e5d
fix validating not works
zombieJ b37f375
support initial values
zombieJ bf7d901
add reset interface
zombieJ 8e7fe87
support reset
zombieJ d5b7add
support setFields
zombieJ 3011cc9
refactor
zombieJ a1571c9
rename interface
zombieJ 4346314
support dependencies
zombieJ 558da19
update example
zombieJ 00e4272
opt errors
zombieJ 7fa6008
add props for redux
zombieJ 933a255
supprot redux
zombieJ b77f543
fix errors
zombieJ b09c682
fix check meta logic
zombieJ 2aac0b1
update demo
zombieJ 56e3705
support list
zombieJ 45871ab
suport list remove
zombieJ 18f820f
wrap entities api
zombieJ File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉怪怪的,setValue 调用了 n 次。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以前也是这么做的,它要出一个纯粹的 Field 需要填一下对应的值。不过这里其实每次都只有一个 Field 变更,并不是真的一串值变了。
ref: https://github.com/react-component/form/blob/master/src/createBaseForm.js#L294