From 06cd197c93b55aa992f14dc8f5a81855922f76c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Tue, 29 Oct 2024 18:50:43 +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=E6=95=B0=E6=8D=AE=E9=AD=94=E6=96=B9=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/magic-cube/index.vue | 8 ++--
.../components/product-list-show.vue | 5 ++-
src/components/model-data-magic/index.vue | 15 ++++---
.../model-data-magic-content.vue | 15 ++++---
src/components/model-img-magic/index.vue | 16 ++++----
.../model-img-magic-content.vue | 41 +++++++++++++------
src/config/const/data-magic.ts | 3 ++
src/config/const/img-magic.ts | 3 ++
src/utils/index.ts | 8 ++++
9 files changed, 73 insertions(+), 41 deletions(-)
diff --git a/src/components/common/magic-cube/index.vue b/src/components/common/magic-cube/index.vue
index 7f89f682..e8dcacf3 100644
--- a/src/components/common/magic-cube/index.vue
+++ b/src/components/common/magic-cube/index.vue
@@ -18,10 +18,10 @@
- {{ Math.round((750 / densityNum) * (item.end.x - item.start.x + 1)) }}
+ 建议{{ Math.round((props.cubeWidth / densityNum) * (item.end.x - item.start.x + 1)) }}
x
- {{ Math.round((750 / densityNum) * (item.end.y - item.start.y + 1)) }}
- 像素
+ {{ Math.round((props.cubeHeight / densityNum) * (item.end.y - item.start.y + 1)) }}
+ px
{{ data_title(item) }}
@@ -264,6 +264,7 @@ const data_title = (item: CubeItem) => {
text-align: center;
box-sizing: border-box;
position: relative;
+ overflow: hidden;
.item {
border: 1px solid #fff;
border-top: 0;
@@ -307,6 +308,7 @@ const data_title = (item: CubeItem) => {
}
.cube-selected {
position: absolute;
+ overflow: hidden;
background-color: #eee;
border: 1px solid #fff;
text-align: center;
diff --git a/src/components/model-data-magic/components/product-list-show.vue b/src/components/model-data-magic/components/product-list-show.vue
index 65321ffe..9c97764d 100644
--- a/src/components/model-data-magic/components/product-list-show.vue
+++ b/src/components/model-data-magic/components/product-list-show.vue
@@ -61,7 +61,7 @@
-
+
@@ -108,6 +108,7 @@ const props = withDefaults(defineProps(), {
});
const split_list = computed(() => props.value || {});
+const gap_height = computed(() => 20 / 3 + 'px');