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');