AprChell

Results 11 issues of AprChell

## **详细描述 bug** 调试物料 提示注入成功,画布上不能展示该组件,显示Component Not Found。控制台提示 base.js:500 ColorfulInput component is not found in components list。 --- ## **如何复现 bug?** Steps to reproduce the behavior: / 详细复现步骤: 1. 初始化物料仓库,选择react-组件库 npm...

## **Describe the bug (required)** / **详细描述 bug(必填)** antd组件场景出码 this.$('xxx')获取不到组件 ## A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述 使用antd组件场景demo,输入框绑定refId,出码后使用this.$('xxx') 拿不到该对象。 ## **To Reproduce...

help wanted

## SlotSetter如何设置默认开启插槽,不用每次手动点击switch去开启 在组件描述文件meta.ts中设置组件属性为SlotSetter,如何设置可以将SlotSetter设置为默认开启,不用每次在组件属性设置中点击Switch开关开启才能往Slot中拖组件 --- ## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)** SlotSetter设置 ``` { name: 'children4', title: 'children4', setter: { componentName: 'SlotSetter', isRequired: true, title: 'children4', initialValue: { type: 'JSSlot',...

需求背景:拖入组件的时候想通过程序修改容器schema中的methods和state,不用在拖入组件后在源码面板中手写state和methods。现在只能先project.exportSchema()修改了之后再importSchema()。但是这样会导致页面重新加载。能不能提供一些api来修改这个结构描述,并且不让页面来重新加载。 现在修改了源码面板,页面也会重新加载导致失去选中的组件。 或者能不能提供一些实现的思路。

enhancement

类似于`supportVariableGlobally`,支持在init时设置`supportResetFieldsGlobally`,开启全局配置。组件属性setter后会有一个重置按钮,将属性重置为初始状态。 在物料props中设置`supportResetFields`,来开启当前属性是否支持展示重置按钮. ## 例如:antd按钮的尺寸中设置 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/29fe4518-ab03-425b-8e74-26b20482ba73) ## demo项目init时开启全局 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/50582eae-619e-4793-b32e-386325df6f98) ## 最终在浏览器中展示 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/e0c699cd-77b9-4efb-962f-ba1aacfe5a3d)

## 容器中的撤销未同步 复现步骤: 1. 打开官网的综合场景随便删除一个组件,例如删除 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/dfcc5ee7-a0ef-4155-baef-5fc18f572634) 看到左侧的大纲树中确实没有这个容器了 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/b155ba7f-f7fd-49b6-82f8-0964cc10d4cb) 2. 撤销,画布中出现了刚才删除的容器,但是大纲树中没有恢复 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/c14f9f6a-c804-4db4-8247-2c3ccc8d9b26) 大纲树要钉住 ## 插槽中的组件撤销未同步 复现步骤: 1. 打开官网的基础antd场景,拖一个主按钮 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/5014b1a4-fed0-4a4b-bd5d-7b5670ee1385) 2. 删除主按钮中的图标 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/c2fde523-c340-4098-9eb9-c5eb00fa5ed9) 3. 撤销操作,发现主按钮中的图标有但是大纲树中没有 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/76430a02-4274-4d50-a2a7-3bcf69e4218a)

bug
help wanted

## 现象 组件生命周期函数componentDidMount 声明是异步函数,出码就报错了。 ![image](https://user-images.githubusercontent.com/27946984/232723298-59e38f28-d67b-491b-a3de-b98a34f58824.png) ![image](https://user-images.githubusercontent.com/27946984/232723363-9b8c9b60-5a0d-4b67-9adb-4155283cbf72.png) 我看是出码的时候把componentDidMount 函数名写死了,出码结果函数内容中有await但是方法名前面没有async。 这是故意这么设计的不让在生命周期函数中用await还是bug? ![image](https://user-images.githubusercontent.com/27946984/232723746-964dbf7e-fdc6-476d-94d0-17d36754e304.png) 然后无意中看到了源码面板介绍,有点懵了 ![image](https://user-images.githubusercontent.com/27946984/232727490-3fa24801-e56d-403f-bbd2-8ad56a097859.png) 我没有在读取schema中的`originCode`之后自己手动通过babel编译。发现好像也没什么问题。

enhancement
module/codeout

重置当前属性的setter ![image](https://github.com/alibaba/lowcode-engine-ext/assets/27946984/d1a29883-dbbf-4a34-b736-c6c68bb86e97) https://github.com/alibaba/lowcode-engine/pull/2795

## 复现步骤 在官方提供的在线环境中,打开两个页面,在不同的页面中绑定按钮的点击事件(绑定不同的函数名)。发现后绑定的会覆盖之前页面绑定的事件。 ![recording](https://github.com/alibaba/lowcode-engine/assets/27946984/1262901c-5522-4af1-b66a-0d4c23cb23e4) ## 版本信息 ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/53873a44-ae4e-4c44-a391-1440d04f8c47)

在透明度中输入26 点击numberpicker往上加。发下到29就不能往上升了。鼠标指向range组件发现这个值是28.999999 ![error5](https://github.com/alibaba/lowcode-engine/assets/27946984/4bdb80c8-808c-4493-a7d6-ec14a2063320) 版本: ![image](https://github.com/alibaba/lowcode-engine/assets/27946984/3fe61c71-b147-4818-9ddd-23f88cb5d4f7)