|
@@ -1261,10 +1261,20 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
|
|
+ console.log("排查右边空间",newWidth, element.spaceWidthMax,newWidth, element.spaceWidthMin);
|
|
if(newWidth > element.spaceWidthMax || newWidth < element.spaceWidthMin){
|
|
if(newWidth > element.spaceWidthMax || newWidth < element.spaceWidthMin){
|
|
result = false;
|
|
result = false;
|
|
space = element;
|
|
space = element;
|
|
- const newWidthValue = newWidth > element.spaceWidthMax ? element.spaceWidthMax : element.spaceWidthMin
|
|
|
|
|
|
+ let newWidthValue = newWidth > element.spaceWidthMax ? element.spaceWidthMax : element.spaceWidthMin
|
|
|
|
+ if(isZoomIn){ // 放大
|
|
|
|
+ if(newWidth>element.spaceWidthMax){
|
|
|
|
+ newValue = 0
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ newWidthValue = newWidth < element.spaceWidthMin ? element.spaceWidthMin : newWidth;
|
|
|
|
+ console.log("排查右边空间2",newWidth, element.spaceWidthMax, element.spaceWidthMin);
|
|
|
|
+ }
|
|
newWidth = newWidthValue - newWidth;
|
|
newWidth = newWidthValue - newWidth;
|
|
const newChangeValue = changeValue - newWidth;
|
|
const newChangeValue = changeValue - newWidth;
|
|
if(newValue > newChangeValue){
|
|
if(newValue > newChangeValue){
|
|
@@ -1274,6 +1284,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log("排查右边空间3", newValue);
|
|
if(!result){
|
|
if(!result){
|
|
this.$message.warning(`关联空间[${ space && space.spaceName || ''}]达到极限值`);
|
|
this.$message.warning(`关联空间[${ space && space.spaceName || ''}]达到极限值`);
|
|
}
|
|
}
|