lowcode-engine
lowcode-engine copied to clipboard
如何在变量绑定对话框中拿到JSExpression 的运行结果
Describe the bug (required) / 详细描述 bug(必填)
如何在变量绑定对话框中拿到JSExpression 的运行结果?
目前的变量绑定无法直观获得表达式结果。
To Reproduce (required) / 如何复现 bug?(必填,非常重要)
Steps to reproduce the behavior: / 详细复现步骤:
- 点击变量绑定
Expected behavior (required) / 预期行为(必填,非常重要)
期望在VariableBindDialog插件中获取Js 表达式的运行结果,直观的展示出来。
目前VariableBindDialog中获取的field value是一个对象,无法获取运行后的结果。
{ mock: "some mock data", type: "JSExpression", value: "this.state.text ?? 123123123" }
环境信息
- 引擎版本 1.0.8
- ext 版本 1.0.3
- 物料
- moment﹫2.24.0
- lodash
- iconfont-icons
- ﹫ant-design/icons﹫4.7.0
- antd﹫4.19.5
- ﹫alifd/next﹫1.23.0
- ﹫alilc/lowcode-materials﹫1.0.3
可以尝试一下:
1,通过 API 找到 node,https://www.yuque.com/lce/doc/dcrbff
- node.exportSchema('render') 找到对应的 props。
@liujuping 测试了一下获取到的还是filed value。exportSchema参数的其他几个TransformStage枚举都是一样的结果。
This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 2 days.
朋友,你这个问题解决了嘛?
@sundi78634