Browse Source

default height

duanchangpeng 5 years ago
parent
commit
94920b49af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pc/src/components/cropper.vue

+ 2 - 2
pc/src/components/cropper.vue

@@ -123,7 +123,7 @@ export default {
         canScale: true, // 图片是否允许滚轮缩放
         autoCrop: true, // 是否默认生成截图框
         autoCropWidth: 200, // 默认生成截图框宽度
-        autoCropHeight: 150, // 默认生成截图框高度
+        autoCropHeight: 200, // 默认生成截图框高度
         canMove: true, // 上传图片是否可以移动
         fixedBox: true, // 固定截图框大小 不允许改变
         fixed: false, // 是否开启截图框宽高固定比例
@@ -154,7 +154,7 @@ export default {
       input.click()
     },
 
-    // 裁剪input 监听
+    // 裁剪input 监听1
     async onChange(e) {
       let file = e.target.files[0];
       console.log(file);