From ae2e5a916bb8189162e1ffc9f8197ff47795b2c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Mon, 23 Sep 2024 16:29:44 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-module/model-icon/index.vue | 90 ++++++++++
.../model-icon/model-icon-style.vue | 162 ++++++++++++++++++
.../model-image/model-image-style.vue | 2 +-
.../model-text/model-text-style.vue | 2 +-
src/components/model-carousel/index.vue | 4 +-
.../model-custom/components/index.scss | 15 +-
.../model-custom/components/index.vue | 2 +-
src/components/model-goods-list/index.vue | 14 +-
src/components/model-seckill/index.vue | 8 +-
9 files changed, 282 insertions(+), 17 deletions(-)
create mode 100644 src/components/common/custom-module/model-icon/index.vue
create mode 100644 src/components/common/custom-module/model-icon/model-icon-style.vue
diff --git a/src/components/common/custom-module/model-icon/index.vue b/src/components/common/custom-module/model-icon/index.vue
new file mode 100644
index 00000000..aac5af13
--- /dev/null
+++ b/src/components/common/custom-module/model-icon/index.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+ {{ text_title }}
+
+
+
+
+
+
diff --git a/src/components/common/custom-module/model-icon/model-icon-style.vue b/src/components/common/custom-module/model-icon/model-icon-style.vue
new file mode 100644
index 00000000..ccf1e73c
--- /dev/null
+++ b/src/components/common/custom-module/model-icon/model-icon-style.vue
@@ -0,0 +1,162 @@
+
+
+
+
+ 文本设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 加粗
+ 正常
+ 倾斜
+
+
+
+
+
+
+
+ Aa
+ Aa
+ Aa
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 容器设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 边框设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/common/custom-module/model-image/model-image-style.vue b/src/components/common/custom-module/model-image/model-image-style.vue
index e0a7c173..0fb6a79a 100644
--- a/src/components/common/custom-module/model-image/model-image-style.vue
+++ b/src/components/common/custom-module/model-image/model-image-style.vue
@@ -7,7 +7,7 @@
-
+
diff --git a/src/components/common/custom-module/model-text/model-text-style.vue b/src/components/common/custom-module/model-text/model-text-style.vue
index 276ec3d3..932a09b1 100644
--- a/src/components/common/custom-module/model-text/model-text-style.vue
+++ b/src/components/common/custom-module/model-text/model-text-style.vue
@@ -7,7 +7,7 @@
-
+
diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue
index cfa01c7f..dfb5bd41 100644
--- a/src/components/model-carousel/index.vue
+++ b/src/components/model-carousel/index.vue
@@ -34,7 +34,7 @@
- {{ item.video_title }}
+ {{ item.video_title }}
@@ -48,7 +48,7 @@
- {{ item.video_title }}
+ {{ item.video_title }}
diff --git a/src/components/model-custom/components/index.scss b/src/components/model-custom/components/index.scss
index 4b2e090e..f041a7d6 100644
--- a/src/components/model-custom/components/index.scss
+++ b/src/components/model-custom/components/index.scss
@@ -66,7 +66,20 @@
.vdr-handle.vdr-handle-bm,
.vdr-handle.vdr-handle-br {
display: block !important;
- z-index: 2;
+ z-index: 1;
+ }
+ }
+ :deep(.plug-in-show-tabs.vdr-handle-z-index.vdr-container) {
+ .vdr-handle.vdr-handle-tl,
+ .vdr-handle.vdr-handle-tr,
+ .vdr-handle.vdr-handle-tm,
+ .vdr-handle.vdr-handle-ml,
+ .vdr-handle.vdr-handle-mr,
+ .vdr-handle.vdr-handle-bl,
+ .vdr-handle.vdr-handle-bm,
+ .vdr-handle.vdr-handle-br {
+ display: block !important;
+ z-index: 0;
}
}
.plug-in-border {
diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue
index ddb05b21..aee1b007 100644
--- a/src/components/model-custom/components/index.vue
+++ b/src/components/model-custom/components/index.vue
@@ -41,7 +41,7 @@
-
+
diff --git a/src/components/model-goods-list/index.vue b/src/components/model-goods-list/index.vue
index d7709531..16f8c4f7 100644
--- a/src/components/model-goods-list/index.vue
+++ b/src/components/model-goods-list/index.vue
@@ -6,7 +6,7 @@
{{ item.title }}
-
+
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
@@ -31,12 +31,12 @@
-
+
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
-
+
{{ item.show_original_price_symbol }}{{ item.min_original_price }}
@@ -66,12 +66,12 @@
-
+
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
-
+
{{ item.show_original_price_symbol }}{{ item.min_original_price }}
@@ -115,12 +115,12 @@
-
+
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
-
+
{{ item.show_original_price_symbol }}{{ item.min_original_price }}
diff --git a/src/components/model-seckill/index.vue b/src/components/model-seckill/index.vue
index f352d9f3..28b9192b 100644
--- a/src/components/model-seckill/index.vue
+++ b/src/components/model-seckill/index.vue
@@ -66,13 +66,13 @@
-
+
秒杀价
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
-
+
{{ item.show_original_price_symbol }}{{ item.min_original_price }}
@@ -127,13 +127,13 @@
-
+
秒杀价
{{ item.show_price_symbol }}{{ item.min_price }}
{{ item.show_price_unit }}
-
+
{{ item.show_original_price_symbol }}{{ item.min_original_price }}
From efe8ac7255c34267c423afca8a5237fc39c6395d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Mon, 23 Sep 2024 17:31:38 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-module/model-icon/index.vue | 56 +++++--------------
.../model-icon/model-icon-style.vue | 46 ++++++---------
.../model-lines/model-lines-style.vue | 2 +-
.../model-text/model-text-style.vue | 2 +-
src/components/model-carousel/index.vue | 2 +
.../model-custom/components/index-default.ts | 38 +++++++++++++
.../model-custom/components/index.vue | 10 +++-
src/components/model-custom/index.vue | 3 +
.../model-custom/model-custom-content.vue | 3 +
9 files changed, 86 insertions(+), 76 deletions(-)
diff --git a/src/components/common/custom-module/model-icon/index.vue b/src/components/common/custom-module/model-icon/index.vue
index aac5af13..3528a066 100644
--- a/src/components/common/custom-module/model-icon/index.vue
+++ b/src/components/common/custom-module/model-icon/index.vue
@@ -1,18 +1,12 @@
-
-
-
-
-
- {{ text_title }}
-
+
+
diff --git a/src/components/common/custom-module/model-icon/model-icon-style.vue b/src/components/common/custom-module/model-icon/model-icon-style.vue
index ccf1e73c..5765b6cc 100644
--- a/src/components/common/custom-module/model-icon/model-icon-style.vue
+++ b/src/components/common/custom-module/model-icon/model-icon-style.vue
@@ -3,39 +3,25 @@
文本设置
-
-
+
+
-
+
-
+
-
-
+
+
-
-
- 加粗
- 正常
- 倾斜
-
-
-
-
+
+
-
-
- Aa
- Aa
- Aa
-
-
-
-
+
+
@@ -48,10 +34,10 @@
-
+
-
+
@@ -67,7 +53,7 @@
-
+
@@ -121,15 +107,15 @@ const form = ref(diy_data.value.com_data);
const center_height = defineModel('height', { type: Number, default: 0 });
const padding_change = (padding: any) => {
- form.value.text_padding = Object.assign(form.value.text_padding, pick(padding, ['padding', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right']));
+ form.value.icon_padding = Object.assign(form.value.icon_padding, pick(padding, ['padding', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right']));
};
const bg_radius_change = (radius: any) => {
form.value.bg_radius = Object.assign(form.value.bg_radius, pick(radius, ['radius', 'radius_top_left', 'radius_top_right', 'radius_bottom_left', 'radius_bottom_right']));
};
-const text_change = (key: string) => {
+const icon_change = (key: string) => {
if (key == '2') {
- form.value.text_title = '';
+ form.value.icon_title = '';
} else {
form.value.data_source_id = '';
}
diff --git a/src/components/common/custom-module/model-lines/model-lines-style.vue b/src/components/common/custom-module/model-lines/model-lines-style.vue
index 1dc49af5..bfa17240 100644
--- a/src/components/common/custom-module/model-lines/model-lines-style.vue
+++ b/src/components/common/custom-module/model-lines/model-lines-style.vue
@@ -29,7 +29,7 @@
-
+
diff --git a/src/components/common/custom-module/model-text/model-text-style.vue b/src/components/common/custom-module/model-text/model-text-style.vue
index 932a09b1..cb758d34 100644
--- a/src/components/common/custom-module/model-text/model-text-style.vue
+++ b/src/components/common/custom-module/model-text/model-text-style.vue
@@ -73,7 +73,7 @@
-
+
diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue
index dfb5bd41..cc1bc1dc 100644
--- a/src/components/model-carousel/index.vue
+++ b/src/components/model-carousel/index.vue
@@ -309,5 +309,7 @@ const slideChange = (swiper: { realIndex: number }) => {
}
.video-class {
max-width: 100%;
+ margin-right: 10px;
+ margin-left: 10px;
}
diff --git a/src/components/model-custom/components/index-default.ts b/src/components/model-custom/components/index-default.ts
index 9c6535ea..0f90dacc 100644
--- a/src/components/model-custom/components/index-default.ts
+++ b/src/components/model-custom/components/index-default.ts
@@ -82,6 +82,44 @@ export const line_com_data = {
bottom_up: '1',
}
+// icon的默认值
+export const icon_com_data = {
+ com_width: 36,
+ com_height: 36,
+ staging_height: 36,
+ icon_class: '',
+ data_source_id: '',
+ data_source_list: {},
+ icon_link: {},
+ is_rich_icon: '0',
+ is_up_down: '1',
+ icon_color: '#000',
+ icon_weight: 'normal',
+ icon_size: 12,
+ icon_option: 'none',
+ icon_location: 'left',
+ icon_padding: {
+ padding: 0,
+ padding_top: 0,
+ padding_bottom: 0,
+ padding_left: 0,
+ padding_right: 0,
+ },
+ icon_rotate: 0,
+ border_show: '0',
+ border_color: '#FF5D5D',
+ border_style: 'solid',
+ bg_radius: {
+ radius: 0,
+ radius_top_left: 0,
+ radius_top_right: 0,
+ radius_bottom_left: 0,
+ radius_bottom_right: 0,
+ },
+ border_size: 1,
+ com_bg: '',
+ bottom_up: '1',
+}
// 判断两个矩形是否有交集或者被包裹
export const isRectangleIntersecting = (rect1: react1, rect2: react1) => {
// 矩形的格式为 { x, y, width, height }
diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue
index aee1b007..83dbb2a4 100644
--- a/src/components/model-custom/components/index.vue
+++ b/src/components/model-custom/components/index.vue
@@ -56,6 +56,9 @@
+
+
+
@@ -82,7 +85,7 @@