feat: 拖拽布局-优化问题

flex-api
lichaojun 2 weeks ago
parent 8fe98529c2
commit dbdae70640

@ -685,6 +685,9 @@
focusedStyle_scale: currentComponent.focusedStyle_scale,
content: currentComponent.content,
};
if (!widget.content) {
widget.content = currentComponent.el.children[0].innerHTML;
}
if (currentComponent.type === 'image') {
widget.image = currentComponent.image;
} else if (currentComponent.type === 'text') {
@ -694,6 +697,7 @@
widget.text = currentComponent.text;
widget.fontWeight = currentComponent.fontWeight;
}
console.log(widget);
if (currentScreen === 'main') {
main.grid.addWidget(widget);
} else if (currentScreen === 'welcome') {

Loading…
Cancel
Save