Skip to content
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

[Bug Report] 联动不符合预期 #4260

Open
1 task
Xianerrrrr opened this issue Jan 13, 2025 · 0 comments
Open
1 task

[Bug Report] 联动不符合预期 #4260

Xianerrrrr opened this issue Jan 13, 2025 · 0 comments

Comments

@Xianerrrrr
Copy link

Xianerrrrr commented Jan 13, 2025

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. setValues 时字段的顺序不同,联动效果不同
    form.setValues({ /* c、d 的被动联动不生效 */ b: 2, a: 1, /* c、d 的被动联动能生效 */ // a: 1, // b: 2, });

  2. 同时依赖字段 value 和字段 visible 的时候,联动不能正常生效
    x-reactions={{ // 去掉对 b 的依赖就可以了,加上对 b 的依赖之后 b#visible 的变化就不能正常触发了 dependencies: ["b#visible", "b"], fulfill: { state: { value: '{{ console.log("d deps", $deps) || $deps[0] }}', }, }, }}

What is expected?

联动按照预期生效,且不因为字段顺序而表现不同

What is actually happening?

联动没有被正常触发

Package

@formily/[email protected]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant