qiushang 8 månader sedan
förälder
incheckning
517dae88c5
2 ändrade filer med 19 tillägg och 2 borttagningar
  1. 2 2
      package.json
  2. 17 0
      src/renderer/components/home.vue

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "XYImage",
-	"version": "1.6.0.0",
+	"version": "1.6.1.0",
 	"author": "苏州星优办公软件有限公司",
 	"description": "An electron-vue project",
 	"license": "image",
@@ -9,7 +9,7 @@
 		"description": "这里是软件描述文档",
 		"downloadName": "XYImage",
 		"softMid": "zw6yxe4noPx3",
-		"softName": "图片处理",
+		"softName": "星优图片处理大师",
 		"copyright": "苏州星优办公软件有限公司",
 		"popupAdvId": "20",
 		"linkId": "3",

+ 17 - 0
src/renderer/components/home.vue

@@ -1620,6 +1620,7 @@ export default {
 			}else if(index == 7){
 				this.setChange();
 			}
+			
 			if(this.imgList.length > 0){
 				this.setDefaultImgInfo(this.imgList[0]);
 			}
@@ -1628,6 +1629,22 @@ export default {
 				this.rollFlag = false;
 			}
 			
+			if(this.menuIndex == 12){
+				setTimeout(() => {
+					let obj = document.getElementById('fg-bg');
+					if(obj){
+						obj.style.width = '80%';
+						obj.style.height = '80%';
+						let scale = this.handleData.width / this.handleData.height;
+						if(this.handleData.width >= this.handleData.height){
+							obj.style.height = obj.clientWidth / scale + 'px';
+						}else{
+							obj.style.width = obj.clientHeight * scale + 'px';
+						}
+					}
+				}, 100)
+			}
+			
 		},
 		setDefaultCropData(){
 			this.cropOptions = {