alibaba / alibaba/lowcode-engine

如何在变量绑定对话框中拿到JSExpression 的运行结果

Open
#694 5 comments 0 reactions 1 assignee Claimed by @liujuping View on GitHub
WIP
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**

如何在变量绑定对话框中拿到JSExpression 的运行结果?
目前的变量绑定无法直观获得表达式结果。
![image](https://user-images.githubusercontent.com/13900729/174746961-d90b9f5a-45aa-4056-a18c-d3458bce17bf.png)

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

Steps to reproduce the behavior: / 详细复现步骤:

![image](https://user-images.githubusercontent.com/13900729/174747237-f649f5cd-111c-4ac5-96e9-5e2a5d4c6f5a.png)

1. 点击变量绑定

---

## **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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.