We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// 0 : ['array'] // 1: (2) ['array', 0] // 2: (2) ['array', 1] // 3: (2) ['array', 2]
// 0 : ['array'] // 1: (2) ['array', 0] // 2: (2) ['array', '2'] // 3: (2) ['array', 1]
@formily/[email protected]
The text was updated successfully, but these errors were encountered:
这个问题发生在 ArrayField 往数组中间insert的时候,向数组尾部添加不会触发该问题。
该 issue 中的 case 在 ArrayField 执行 spliceArrayState 方法的时候,分别发生以下情况:
spliceArrayState
Form.createField()
FormPath.parse('array').concat(1)
['array', 1]
moveIndex
"array.2"
['array', '2']
formily/packages/core/src/shared/internals.ts
Lines 399 to 407 in 4dc50bc
FormPath.parse(preStr).concat(index)
interface INodePatch
Sorry, something went wrong.
Is there any update on this issue?
No branches or pull requests
Reproduction link
Steps to reproduce
输出值
// 0 : ['array']
// 1: (2) ['array', 0]
// 2: (2) ['array', '2']
// 3: (2) ['array', 1]
What is expected?
// 0 : ['array']
// 1: (2) ['array', 0]
// 2: (2) ['array', 1]
// 3: (2) ['array', 2]
What is actually happening?
// 0 : ['array']
// 1: (2) ['array', 0]
// 2: (2) ['array', '2']
// 3: (2) ['array', 1]
Package
@formily/[email protected]
The text was updated successfully, but these errors were encountered: