From a90b267b9ba2b3c5ed18b9bd95fdbdfe9c0a2e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Sat, 19 Oct 2024 11:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=89=E5=85=A8=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-article-list/index.vue | 1 - src/components/model-custom/index.vue | 1 + .../model-custom/model-custom-content.vue | 2 ++ src/components/model-data-magic/index.vue | 5 --- .../model-data-magic-content.vue | 1 + src/components/model-float-window/index.vue | 2 -- src/components/page-settings/page-styles.vue | 12 +++++++ src/config/const/header-nav.ts | 4 +++ src/config/const/index.ts | 1 + src/store/modules/common.ts | 7 ++++ src/types/global.d.ts | 1 + src/utils/index.ts | 12 +++++-- src/views/layout/components/main/index.vue | 36 +++++++++++++++++-- src/views/layout/index.vue | 5 ++- 14 files changed, 77 insertions(+), 13 deletions(-) diff --git a/src/components/model-article-list/index.vue b/src/components/model-article-list/index.vue index b3d39677..aed3ce8f 100644 --- a/src/components/model-article-list/index.vue +++ b/src/components/model-article-list/index.vue @@ -135,7 +135,6 @@ const carousel_key = ref('0'); const interval_time = ref(2000); // 轮播图是否滚动 const is_roll = ref(1); - // 内容 const new_content = computed(() => props.value?.content || {}); // 样式 diff --git a/src/components/model-custom/index.vue b/src/components/model-custom/index.vue index 40c698a4..a0bc2a86 100644 --- a/src/components/model-custom/index.vue +++ b/src/components/model-custom/index.vue @@ -46,6 +46,7 @@ const custom_height = computed(() => form.value.height + 'px'); const container = ref(null); const div_width = ref(0); const scale = ref(1); +// 获取当前宽度 和 缩放比例 onMounted(() => { if (container.value) { div_width.value = container.value.offsetWidth; diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 425ca0ed..ca48ddb5 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -21,7 +21,9 @@
+ +