alibaba / alibaba/lowcode-engine

ArraySetter下某个字段使用SlotSetter的画布选中问题

Open
#848 2 comments 0 reactions 1 assignee Assigned to @hzd822 View on GitHub
bug
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

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

ArraySetter下某个字段使用SlotSetter,默认在添加一行数据时,自动初始化SlotSetter为一个默认组件,但是画布无法选中该插槽下的组件,编辑该行配置后,可选中

---

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

1. 使用antd-lowcode-materials下的Table组件
2. 更改table组件的meta文件,columns的initialValue改为如下:
{
title: '标题',
render: {
"type": "JSSlot",
"params": [
"text",
"record",
"index"
],
"value": [
{
"componentName": "Icon",
"props": {
"type": "SmileOutlined",
"size": 20,
"rotate": 0,
"spin": false
},
"hidden": false,
"title": "",
"isLocked": false,
"condition": true,
"conditionGroup": ""
}
]
}
}
3. 运行该资产包,拖拽Table组件
4. 点击添加一项
image
添加后,画布中的图标组件无法选中,编辑右侧设置后,可被选中
5. 如下:
image

---

## **Screenshots (optional)** / **bug 截图(可选)**
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题

---

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: 1.0.12
- AliLowCodeEngineExt version: 1.0.3
- Browser: chrome
- materials / plugins / tools / 其他物料 / 插件 / 工具链版本

> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))

## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题

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.