Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
junjie 2021-12-22 12:28:22 +08:00
commit 7f213a85f0
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,9 @@ export const BASE_MOBILE_STYLE = {
style: {
width: 1600,
height: 300,
borderRadius: 5
left: 0,
top: 0,
borderRadius: 3
},
x: 1,
y: 1,

View File

@ -351,7 +351,11 @@ const data = {
// 移动端布局转换
state.componentData.forEach(item => {
if (item.mobileSelected) {
item.style = item.mobileStyle.style
item.style.width = item.mobileStyle.style.width
item.style.height = item.mobileStyle.style.height
item.style.top = item.mobileStyle.style.top
item.style.left = item.mobileStyle.style.left
item.style.borderRadius = 3
item.x = item.mobileStyle.x
item.y = item.mobileStyle.y
item.sizex = item.mobileStyle.sizex