From 3dccdc4245402badda1d5725cb232fd40beb0bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 7 Aug 2025 16:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/index.vue | 2 +- src/views/layout/components/main/index.vue | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/model-custom/index.vue b/src/components/model-custom/index.vue index 387d2122..1debf98c 100644 --- a/src/components/model-custom/index.vue +++ b/src/components/model-custom/index.vue @@ -132,7 +132,7 @@ watchEffect(() => { // 根据容器宽度来计算内部大小 const width = new_width - outer_spacing - internal_spacing - content_spacing - data_spacing - props.outerContainerPadding; // 获得对应宽度的比例 - const scale_number = width / new_width; + const scale_number = width / 390; scale.value = scale_number > 0 ? scale_number : 0; }); //#endregion diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue index 8b6e6a4b..4eeb8bc4 100644 --- a/src/views/layout/components/main/index.vue +++ b/src/views/layout/components/main/index.vue @@ -106,6 +106,8 @@
请在预览里边查看实际效果
+
选项卡切换到非(第一个)下不支持左侧组件拖入
+ 切换至选项卡(第一个) @@ -157,6 +159,12 @@ const tabs_data_name = computed(() => { } return ''; }); +// 切换至首页显示 +const tabs_content_click = () => { + if (tabs_data.value.length > 0) { + tabs_data.value[0].com_data.content.tabs_active_index = 0; + } +} // 时间处理 const new_date_value = computed(() => { return (item: any) => { @@ -644,4 +652,7 @@ const footer_nav_event = () => { z-index: 2; height: 20rem; } +.col-price-style { + color: red; +}