alibaba / alibaba/lowcode-engine
initialValue &ArraySetter 相关bug
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
1. 打开 https://lowcode-engine.cn/demo/index.html
2. 复制下面代码直接控制台贴入
```s1 = Object.getOwnPropertySymbols(AliLowCodeEngine.material)[1];
const tableConfigure = AliLowCodeEngine.material[s1]._componentMetasMap.get('ProTable').configure;
tableConfigure[0].items.unshift({
name: 'testButtonsBinding',
title: '操作列绑定',
display: 'accordion',
initialValue: [
{
children: '按钮',
primaryKey: '123',
},
],
setter: {
componentName: 'ArraySetter',
props: {
mode: 'list',
itemSetter: {
componentName: 'ObjectSetter',
// initialValue: {},
props: {
config: {
items: [
{
name: 'children',
isRequired: true,
title: '标题',
setter: 'StringSetter',
supportVariable: true,
},
],
},
},
},
},
},
})
```
4. 拖拽一个高级表格,并对【操作列绑定】一直做添加一项操作

5. 连续添加四次出现 bug

暂时测试起来是 initialValue 导致的问题,如上复现方式操作的时候,如果把 initialValue: {} 放开,操作正常

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.