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

form-select无法取到数据链当中的data #7152

Closed
wh88725 opened this issue Jun 13, 2023 · 1 comment · Fixed by #7169
Closed

form-select无法取到数据链当中的data #7152

wh88725 opened this issue Jun 13, 2023 · 1 comment · Fixed by #7169
Assignees

Comments

@wh88725
Copy link

wh88725 commented Jun 13, 2023

实现场景:

我想实现 CURD 组件中 form-select source 值使用预先加载的数据链当中的变量

存在的问题:

通过amisDebug调试开关观察组件数据链上下文,发现 CURD 中的 form 可以取到的数据链 data,form 当中的select却取不到
详情如下图:
from当中可以取到 mySystemOptions 这个data
1686625435521

from 下 select 当中数据链没有 mySystemOptions 这个data
image

当前方案:

image

@2betop
Copy link
Collaborator

2betop commented Jun 14, 2023

等 3.2.0 发布后,可以使用 trackExpression: "${mySystemOptions | json}" 来追踪上层数据变化

hsm-lv added a commit that referenced this issue Jun 16, 2023
feat: 数据域组件扩充 trackExpression 属性用于显式的设置跟踪上层数据变化 Close: #7152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants