From 0440ca2be24e4aa0230b9eba3fa2125609fea05d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 13 Dec 2022 15:34:50 +0800 Subject: [PATCH] fix --- src/components/img-upload/Cropper.vue | 6 +- src/components/modules/content.vue | 127 ++++++++++++++++++++++++-- src/const/modules.js | 27 +++--- src/pages/article/list/index.vue | 2 +- src/pages/column/page/application.vue | 10 +- src/pages/column/page/edu.vue | 1 + src/pages/column/page/research.vue | 8 +- 7 files changed, 151 insertions(+), 30 deletions(-) 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 @@ 确定 + + + + + +