alibaba / alibaba/lowcode-engine

拖动组件初始化值的时候,没有还原到Setter中

Open
#2,564 0 comments 0 reactions 1 assignee Claimed by @hzd822 View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

**详细描述 bug(必填)**
cardStyle设置的StyleSetter

```
{
name: 'advanced1',
title: '卡片样式',
type: 'group',
display: 'entry',
items: [
{
name: 'cardStyle',
title: '样式设置',
display: 'block',
setter: {
componentName: "StyleSetter",
initialValue: {
width: '25px',
height: '25px',
fontSize: '14px',
color: '#ffffff',
backgroundColor: '#000000',
fontWeight: '500',
marginLeft: '2px',
marginRight: '2px',
}
},
defaultValue: {
width: '25px',
height: '25px',
fontSize: '14px',
color: '#ffffff',
backgroundColor: '#000000',
fontWeight: '500',
marginLeft: '2px',
marginRight: '2px',
}
}
],
},
```
点击卡片才会生成默认值,但是此时StyleSetter里面的样式没有还原出来(经过调试发现value值为undefined),第二次进入就有值了

**如何复现 bug?(必填,非常重要)**

**预期行为(必填,非常重要)**
**请清晰和精确的描述你预期的行为

---

**bug 截图(可选)**
![image](https://github.com/alibaba/lowcode-engine/assets/9854019/75cd298c-6c83-4ea2-86c4-6c2435b54ecb)

![image](https://github.com/alibaba/lowcode-engine/assets/9854019/15d32b41-79c9-4f4a-9623-6ad3a22d56a3)

**请提供如下信息(必填)**
**低代码引擎版本 1.1.11-beta.18
**低代码引擎扩展包版本 1.0.7-beta.4
**浏览器版本
**工具链版本

**更多额外信息(可选)**
**可以追加更多的额外信息,帮助定位问题

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.