-
Notifications
You must be signed in to change notification settings - Fork 10
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
onChange()
for FormState
#54
Merged
Merged
Conversation
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
huangbinjie
reviewed
Aug 23, 2021
need more demos / cases?
|
huangbinjie
reviewed
Aug 23, 2021
huangbinjie
reviewed
Aug 23, 2021
@lzfee0227 是指这个 PR 的说明还是指 formstate-x 本身需要 demo? |
Luncher
reviewed
Aug 23, 2021
看起来没有大的问题,这里先 merge(到 |
Closed
不是一个意思吗? |
不着急,文档或者 demo 在 v3 最后补;后边 API 名、接口细节大概率还会调整,现在写了,回头也没法 copy 直接用的 |
Merged
nighca
added a commit
to nighca/formstate-x
that referenced
this pull request
Mar 4, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix #40, detail: #40 (comment)
1. Method
onChange
forFormState
(&ArrayFormState
)2. Methods (
remove
,insert
,append
,move
) forArrayFormState
3. Make
FormState
(&ArrayFormState
) fields readonlyManipulating fields object (or array)
$
in native way is not allowed any more. It's now impossible to do things like:If you want to do fields' manipulation, use methods provided above. Which means, you don't need to care about sub fields' creation & disposition any more, formstate-x takes care of it.