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

在配置页面,如何匹配两个组件联动? #23

Open
4ever88 opened this issue Dec 23, 2021 · 5 comments
Open

在配置页面,如何匹配两个组件联动? #23

4ever88 opened this issue Dec 23, 2021 · 5 comments

Comments

@4ever88
Copy link

4ever88 commented Dec 23, 2021

在配置页面,如何匹配两个组件联动?

@TreeLiked
Copy link

+1, 怎么在联动数据那边配置,能拿到什么参数啊,一头雾水(😭)

@xaboy
Copy link
Owner

xaboy commented Mar 22, 2023

组件联动的配置规则: http://form-create.com/v2/guide/control.html

@TreeLiked
Copy link

你好,就是比如就是,能不能在这个附带数据里面拿到同表单内其他组件的值呢,这个表单是动态渲染的
image

@rujianwang
Copy link

rujianwang commented Dec 28, 2023

@xaboy
请问下 这个有解决方案吗?第二个下拉框 想要 获取 第一个下拉框的值 要怎么设置啊

@yashucn
Copy link

yashucn commented Jan 9, 2024

在配置页面,如何匹配两个组件联动?

用联动数据
[{
"handle": function(val, fApi) {
if (val == 1) {
fApi.disabled(true, 'courseSuitableMajorList');
} else {
fApi.disabled(false, 'courseSuitableMajorList');
}
return val === 1;
},
"rule": [{
"field": "courseSuitableMajorList",
"hidden": true,
"display": false
}]
}]

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

5 participants