lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

关于变量绑定弹窗的1个bug、1个优化

Open LAMMUpro opened this issue 2 years ago • 2 comments

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

  1. (bug)变量绑定弹窗->变量列表里点击的函数名,点击生成的代码少了this. image
  2. (优化)在variableBindDialog的拓展里面,我拓展了[请求处理事件]类型,是类方法(用途是配置增删改的请求方法,区别于数据源,我只把查询的接口写在数据源),但是配置必须填写属性名,为空也会多出一个点 image

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

Screenshots (optional) / bug 截图(可选)

这是我扩展的配置 image 这是我阅读源码发现的关键代码 image

Environments (please complete the following information) (required): / 请提供如下信息(必填)

  • AliLowCodeEngine version: [e.g. 1.1.9-beta.1] / 低代码引擎版本
  • AliLowCodeEngineExt version: [e.g. 1.0.7-beta.1] / 低代码引擎扩展包版本

LAMMUpro avatar Aug 09 '23 06:08 LAMMUpro

还有一个:连续点击一个变量/函数名,生成的代码会出现undefined image

LAMMUpro avatar Aug 09 '23 06:08 LAMMUpro

还有一个:连续点击一个变量/函数名,生成的代码会出现undefined image

在demo中找到 然后找到src/plugins/plugin-variable-bind-dialog/index.tsx

 <Tree
                dataSource={childrenVariableList}
               // 加上这行
                selectedKeys={[]}
                onSelect={this.onSelectTreeNode}
                defaultExpandAll
                filterTreeNode={filterTreeNode}
                expandedKeys={expandedKeys}
                autoExpandParent={autoExpandParent}
                onExpand={this.handleExpand}
              />

即可解决

ppmmwozuiai avatar Jan 10 '24 10:01 ppmmwozuiai