From 739d1f5789ca807bbe47eac7e6933740d2b9b2c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 7 Feb 2025 17:45:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/custom.vue | 8 +- components/diy/data-tabs.vue | 328 +++++++++++++++++++++++++++++++++++ components/diy/diy.vue | 3 + 3 files changed, 337 insertions(+), 2 deletions(-) create mode 100644 components/diy/data-tabs.vue diff --git a/components/diy/custom.vue b/components/diy/custom.vue index cdac3f07..ad8ea57d 100644 --- a/components/diy/custom.vue +++ b/components/diy/custom.vue @@ -96,6 +96,10 @@ type: Number, default: 1000000, }, + propIsCommonStyle: { + type: Boolean, + default: true, + }, propOuterContainerPadding: { type: Number, default: 0, @@ -249,8 +253,8 @@ div_width: width, scale: new_scale, custom_list_length: new_form.custom_list.length - 1, - style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', // 用于样式显示 - style_img_container: common_img_computer(new_style.common_style, this.propIndex), + style_container: this.propIsCommonStyle ? common_styles_computer(new_style.common_style) + 'box-sizing: border-box;' : '', // 用于样式显示 + style_img_container: this.propIsCommonStyle ? common_img_computer(new_style.common_style, this.propIndex) : '', style_content_container: common_styles_computer(new_data_content_style) + 'box-sizing: border-box;', // 用于样式显示 style_content_img_container: common_img_computer(new_data_content_style), style_chunk_container: common_styles_computer(new_data_style) + 'box-sizing: border-box;', // 用于样式显示 diff --git a/components/diy/data-tabs.vue b/components/diy/data-tabs.vue new file mode 100644 index 00000000..43c87db2 --- /dev/null +++ b/components/diy/data-tabs.vue @@ -0,0 +1,328 @@ + + + + + diff --git a/components/diy/diy.vue b/components/diy/diy.vue index fce11fd1..61f503b5 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -27,6 +27,7 @@ + @@ -121,6 +122,7 @@ import componentDiyImgMagic from '@/components/diy/img-magic'; import componentDiySeckill from '@/components/diy/seckill'; import componentDiyTabsCarousel from '@/components/diy/tabs-carousel'; + import componentDataTabs from '@/components/diy/data-tabs'; import componentGoodsList from '@/components/goods-list/goods-list'; import componentNoData from '@/components/no-data/no-data'; import componentBottomLine from '@/components/bottom-line/bottom-line'; @@ -176,6 +178,7 @@ componentDiyImgMagic, componentDiySeckill, componentDiyTabsCarousel, + componentDataTabs, componentGoodsList, componentNoData, componentBottomLine, From 8848d588482bdd8ee74f79859b368f1660abb848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 7 Feb 2025 17:45:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/data-tabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/diy/data-tabs.vue b/components/diy/data-tabs.vue index 43c87db2..58a62276 100644 --- a/components/diy/data-tabs.vue +++ b/components/diy/data-tabs.vue @@ -22,7 +22,7 @@ - + From f44856d09fa3e693e44238236fce0cfa416efb53 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, 8 Feb 2025 09:32:07 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/data-tabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/diy/data-tabs.vue b/components/diy/data-tabs.vue index 58a62276..4896f3e8 100644 --- a/components/diy/data-tabs.vue +++ b/components/diy/data-tabs.vue @@ -15,7 +15,7 @@