diff --git a/src/components/img-upload/Cropper.vue b/src/components/img-upload/Cropper.vue index 93b7cf4..81591e8 100644 --- a/src/components/img-upload/Cropper.vue +++ b/src/components/img-upload/Cropper.vue @@ -17,7 +17,7 @@ :auto-crop-width="option.autoCropWidth" :auto-crop-height="option.autoCropHeight" :fixed-box="option.fixedBox" - :fixed="option.fixed" + :fixed="fixed" :fixed-number="fixedNumber" @realTime="realTime" /> @@ -80,6 +80,10 @@ export default { fixedNumber: { type: Array, default: [1, 0.26] + }, + fixed: { + type: Boolean, + default: true } }, data() { diff --git a/src/components/modules/content.vue b/src/components/modules/content.vue index 7d78745..45f472f 100644 --- a/src/components/modules/content.vue +++ b/src/components/modules/content.vue @@ -9,10 +9,11 @@ + :action="api.upload" + :auto-upload="false">
@@ -39,17 +40,32 @@ 确定 + + + + + +