fix:diagram 图片 宽高不对的问题

This commit is contained in:
zhangyu
2021-12-24 14:36:07 +08:00
parent 765a6e6cc6
commit acae91f698
9 changed files with 16 additions and 26 deletions

View File

@@ -1739,8 +1739,8 @@ export default {
imageId: item.id,
unit: item.unit,
rect: {
width: res2[index].width,
height: res2[index].height
width: res2[index].width === -1 ? 100 : res2[index].width,
height: res2[index].height === -1 ? 100 : res2[index].height
}
}
})
@@ -1756,8 +1756,8 @@ export default {
imageId: item.id,
unit: item.unit,
rect: {
width: res2[index].width,
height: res2[index].height
width: res2[index].width === -1 ? 100 : res2[index].width,
height: res2[index].height === -1 ? 100 : res2[index].height
}
}
}]