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
setValues 时字段的顺序不同,联动效果不同 form.setValues({ /* c、d 的被动联动不生效 */ b: 2, a: 1, /* c、d 的被动联动能生效 */ // a: 1, // b: 2, });
form.setValues({ /* c、d 的被动联动不生效 */ b: 2, a: 1, /* c、d 的被动联动能生效 */ // a: 1, // b: 2, });
同时依赖字段 value 和字段 visible 的时候,联动不能正常生效 x-reactions={{ // 去掉对 b 的依赖就可以了,加上对 b 的依赖之后 b#visible 的变化就不能正常触发了 dependencies: ["b#visible", "b"], fulfill: { state: { value: '{{ console.log("d deps", $deps) || $deps[0] }}', }, }, }}
x-reactions={{ // 去掉对 b 的依赖就可以了,加上对 b 的依赖之后 b#visible 的变化就不能正常触发了 dependencies: ["b#visible", "b"], fulfill: { state: { value: '{{ console.log("d deps", $deps) || $deps[0] }}', }, }, }}
联动按照预期生效,且不因为字段顺序而表现不同
联动没有被正常触发
@formily/[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction link
Steps to reproduce
setValues 时字段的顺序不同,联动效果不同
form.setValues({ /* c、d 的被动联动不生效 */ b: 2, a: 1, /* c、d 的被动联动能生效 */ // a: 1, // b: 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]
The text was updated successfully, but these errors were encountered: