|
@@ -195,11 +195,12 @@ export default {
|
|
|
});
|
|
|
this.aspectRatio = 1;
|
|
|
} else {
|
|
|
+ // 属性输入框宽高显示的数值
|
|
|
+ let inputW,inputH;
|
|
|
this.msgList.forEach(item => {
|
|
|
const Item = newVal.itemList[0];
|
|
|
const width = Item.boundingRect().width;
|
|
|
const height = Item.boundingRect().height;
|
|
|
- this.aspectRatio = width / height;
|
|
|
if (item.name == "X") {
|
|
|
item.msg = Item.mapToScene(
|
|
|
Item.boundingRect().left,
|
|
@@ -224,6 +225,7 @@ export default {
|
|
|
} else {
|
|
|
item.disable = true;
|
|
|
}
|
|
|
+ inputW = item.msg;
|
|
|
}
|
|
|
if (item.name == "Height") {
|
|
|
item.msg = height;
|
|
@@ -237,8 +239,10 @@ export default {
|
|
|
} else {
|
|
|
item.disable = true;
|
|
|
}
|
|
|
+ inputH = item.msg;
|
|
|
}
|
|
|
});
|
|
|
+ this.aspectRatio = inputW / inputH;
|
|
|
}
|
|
|
}
|
|
|
}
|