From ad36bb57e175f1098058e82412dce0599226b526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 16 Oct 2024 17:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E9=AD=94?= =?UTF-8?q?=E6=96=B9=E5=92=8C=E8=BD=AE=E6=92=AD=E5=9B=BE=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-carousel/index.vue | 2 +- .../model-carousel/model-carousel-content.vue | 3 +++ .../model-carousel/model-carousel-styles.vue | 19 ++++++++-------- src/components/model-img-magic/index.vue | 4 ++-- .../model-img-magic-content.vue | 22 ++++++++++++++----- .../model-img-magic-styles.vue | 8 ------- src/config/const/carousel.ts | 4 ++-- src/config/const/img-magic.ts | 8 +++---- 8 files changed, 38 insertions(+), 32 deletions(-) diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue index fd5294da..92811e56 100644 --- a/src/components/model-carousel/index.vue +++ b/src/components/model-carousel/index.vue @@ -139,7 +139,7 @@ const seat_list = computed(() => { } }) // 轮播图自适应高度 -const newHeight = computed(() => new_style.value.height + 'px'); +const newHeight = computed(() => form.value.height + 'px'); // 轮播图样式 const interval_type = ref(''); // 轮播图key值 diff --git a/src/components/model-carousel/model-carousel-content.vue b/src/components/model-carousel/model-carousel-content.vue index 11b9a909..9f21a097 100644 --- a/src/components/model-carousel/model-carousel-content.vue +++ b/src/components/model-carousel/model-carousel-content.vue @@ -24,6 +24,9 @@ + + +
diff --git a/src/components/model-carousel/model-carousel-styles.vue b/src/components/model-carousel/model-carousel-styles.vue index 2e439ef6..90c64b7b 100644 --- a/src/components/model-carousel/model-carousel-styles.vue +++ b/src/components/model-carousel/model-carousel-styles.vue @@ -7,16 +7,15 @@ -
- -
轮播设置
- - - - - - -
+
diff --git a/src/components/model-img-magic/index.vue b/src/components/model-img-magic/index.vue index 34cf35a2..9e8e6ac3 100644 --- a/src/components/model-img-magic/index.vue +++ b/src/components/model-img-magic/index.vue @@ -25,8 +25,8 @@ diff --git a/src/components/model-img-magic/model-img-magic-content.vue b/src/components/model-img-magic/model-img-magic-content.vue index 4f1938aa..e37a257b 100644 --- a/src/components/model-img-magic/model-img-magic-content.vue +++ b/src/components/model-img-magic/model-img-magic-content.vue @@ -17,11 +17,23 @@ 等比剪切 - - - 等比缩放 - - +
diff --git a/src/components/model-img-magic/model-img-magic-styles.vue b/src/components/model-img-magic/model-img-magic-styles.vue index e8dffc66..7c879a18 100644 --- a/src/components/model-img-magic/model-img-magic-styles.vue +++ b/src/components/model-img-magic/model-img-magic-styles.vue @@ -9,14 +9,6 @@ -
diff --git a/src/config/const/carousel.ts b/src/config/const/carousel.ts index cf4b7e55..e5dca746 100644 --- a/src/config/const/carousel.ts +++ b/src/config/const/carousel.ts @@ -14,6 +14,7 @@ interface defaultSearch { img_fit: string, is_roll: string; interval_time: number; + height: number, }; style: { radius: number; @@ -22,7 +23,6 @@ interface defaultSearch { radius_bottom_left: number; radius_bottom_right: number; is_show: string; - height: number, image_spacing: number, indicator_style: string; indicator_location: string; @@ -53,6 +53,7 @@ const defaultSearch: defaultSearch = { img_fit: 'contain', is_roll: '1', interval_time: 3, + height: 300, carousel_list: [ { carousel_img: [], @@ -81,7 +82,6 @@ const defaultSearch: defaultSearch = { radius_bottom_left: 0, radius_bottom_right: 0, is_show: '1', - height: 300, image_spacing: 10, indicator_style: 'dot', indicator_location: 'center', diff --git a/src/config/const/img-magic.ts b/src/config/const/img-magic.ts index 55f181f8..44d53d53 100644 --- a/src/config/const/img-magic.ts +++ b/src/config/const/img-magic.ts @@ -11,6 +11,8 @@ interface defaultSearch { style_actived: number; img_magic_list: img_magic[]; img_fit: string; + limit_size: string, + image_height: number; }; style: { radius: number; @@ -19,8 +21,6 @@ interface defaultSearch { radius_bottom_left: number; radius_bottom_right: number; image_spacing: number; - limit_size: boolean, - image_height: number; common_style: object; }; } @@ -43,6 +43,8 @@ const defaultSearch: defaultSearch = { } ], img_fit: 'cover', + limit_size: '0', + image_height: 100, }, style: { radius: 0, @@ -51,8 +53,6 @@ const defaultSearch: defaultSearch = { radius_bottom_left: 0, radius_bottom_right: 0, image_spacing: 2, - limit_size: false, - image_height: 100, common_style: defaultCommon, }, };