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] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=95=B0=E6=8D=AE=E9=80=89?=
=?UTF-8?q?=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,