From 790a59ebedfa7ad1344fdbe55542785340559d05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 6 Feb 2025 16:16:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=80=89=E9=A1=B9=E5=8D=A1?=
=?UTF-8?q?=E5=86=85=E5=AE=B9=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../article/article-style.vue | 44 --
.../custom/custom-content.vue | 0
.../data-tabs-common/custom/custom-style.vue | 0
.../{article => }/data-article-content.vue | 12 +-
.../data-tabs-common/data-custom-content.vue | 587 ++++++++++++++++++
.../{goods => }/data-goods-content.vue | 36 +-
.../goods/data-goods-style.vue | 44 --
.../common/product-show-config/index.vue | 6 +-
.../common/subscript/subscript-styles.vue | 2 +-
.../model-article-list-styles.vue | 10 +-
src/components/model-custom/index.vue | 9 +-
.../model-custom/model-custom-content.vue | 18 +-
.../model-custom/model-custom-styles.vue | 24 +-
.../magic-cube-settings/tabs-content.vue | 2 +-
src/components/model-data-tabs/index.vue | 11 +-
.../model-data-tabs-content.vue | 4 +-
.../model-data-tabs-styles.vue | 20 +-
.../model-goods-list-styles.vue | 14 +-
src/styles/index.scss | 7 +-
19 files changed, 669 insertions(+), 181 deletions(-)
delete mode 100644 src/components/common/data-tabs-common/article/article-style.vue
delete mode 100644 src/components/common/data-tabs-common/custom/custom-content.vue
delete mode 100644 src/components/common/data-tabs-common/custom/custom-style.vue
rename src/components/common/data-tabs-common/{article => }/data-article-content.vue (96%)
create mode 100644 src/components/common/data-tabs-common/data-custom-content.vue
rename src/components/common/data-tabs-common/{goods => }/data-goods-content.vue (86%)
delete mode 100644 src/components/common/data-tabs-common/goods/data-goods-style.vue
diff --git a/src/components/common/data-tabs-common/article/article-style.vue b/src/components/common/data-tabs-common/article/article-style.vue
deleted file mode 100644
index 22a99b59..00000000
--- a/src/components/common/data-tabs-common/article/article-style.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/common/data-tabs-common/custom/custom-content.vue b/src/components/common/data-tabs-common/custom/custom-content.vue
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/components/common/data-tabs-common/custom/custom-style.vue b/src/components/common/data-tabs-common/custom/custom-style.vue
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/components/common/data-tabs-common/article/data-article-content.vue b/src/components/common/data-tabs-common/data-article-content.vue
similarity index 96%
rename from src/components/common/data-tabs-common/article/data-article-content.vue
rename to src/components/common/data-tabs-common/data-article-content.vue
index 582a7c48..426cb762 100644
--- a/src/components/common/data-tabs-common/article/data-article-content.vue
+++ b/src/components/common/data-tabs-common/data-article-content.vue
@@ -1,5 +1,5 @@
-
+
展示设置
@@ -12,8 +12,8 @@
-
-
+
+
列表设置
@@ -31,13 +31,13 @@
-
-
+
+
角标设置
-
+
diff --git a/src/components/common/data-tabs-common/data-custom-content.vue b/src/components/common/data-tabs-common/data-custom-content.vue
new file mode 100644
index 00000000..58375cd5
--- /dev/null
+++ b/src/components/common/data-tabs-common/data-custom-content.vue
@@ -0,0 +1,587 @@
+
+
+
+
+
+
+
+
+ 数据源
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示设置
+
+
+ {{ item == 'vertical' ? '纵向展示' : item == 'vertical-scroll' ? '纵向滑动' : '横向滑动' }}
+
+
+
+
+
+ {{ item }}{{ form.data_source_direction == 'vertical-scroll' ? '行' : '列' }}展示
+
+
+
+
+
+
+
+
+ 数据设置
+
+
+
+ {{ +item === 0 ? '指定数据' : '筛选数据' }}
+
+
+
+
+
+ +添加
+
+
+
+
+
+
+
+
+
+ 自定义编辑
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/common/data-tabs-common/goods/data-goods-content.vue b/src/components/common/data-tabs-common/data-goods-content.vue
similarity index 86%
rename from src/components/common/data-tabs-common/goods/data-goods-content.vue
rename to src/components/common/data-tabs-common/data-goods-content.vue
index 90e658bb..6a2ab5b5 100644
--- a/src/components/common/data-tabs-common/goods/data-goods-content.vue
+++ b/src/components/common/data-tabs-common/data-goods-content.vue
@@ -1,27 +1,29 @@
-
-
- {{ item.name }}
-
-
-
-
- 单列展示
- 两列展示
- 三列展示
- 四列展示
-
-
-
+
+
+
+ {{ item.name }}
+
+
+
+
+ 单列展示
+ 两列展示
+ 三列展示
+ 四列展示
+
+
+
+
-
-
+
+
角标设置
-
+
diff --git a/src/components/common/data-tabs-common/goods/data-goods-style.vue b/src/components/common/data-tabs-common/goods/data-goods-style.vue
deleted file mode 100644
index a9589208..00000000
--- a/src/components/common/data-tabs-common/goods/data-goods-style.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/common/product-show-config/index.vue b/src/components/common/product-show-config/index.vue
index 2e89bf23..5843b62d 100644
--- a/src/components/common/product-show-config/index.vue
+++ b/src/components/common/product-show-config/index.vue
@@ -1,5 +1,5 @@
-
+
显示内容
@@ -15,8 +15,8 @@
-
-
+
+
购物车设置
diff --git a/src/components/common/subscript/subscript-styles.vue b/src/components/common/subscript/subscript-styles.vue
index dabb67a9..cb993984 100644
--- a/src/components/common/subscript/subscript-styles.vue
+++ b/src/components/common/subscript/subscript-styles.vue
@@ -1,5 +1,5 @@
-
+
角标设置
diff --git a/src/components/model-article-list/model-article-list-styles.vue b/src/components/model-article-list/model-article-list-styles.vue
index 0a738399..68585aef 100644
--- a/src/components/model-article-list/model-article-list-styles.vue
+++ b/src/components/model-article-list/model-article-list-styles.vue
@@ -1,7 +1,7 @@
-
+
列表样式
@@ -80,8 +80,8 @@
-
-
+
+
轮播设置
@@ -101,12 +101,12 @@
-
+
-
+
diff --git a/src/components/model-custom/index.vue b/src/components/model-custom/index.vue
index 60c6d698..2d046ca6 100644
--- a/src/components/model-custom/index.vue
+++ b/src/components/model-custom/index.vue
@@ -89,12 +89,9 @@ const props = defineProps({
});
// 用于页面判断显示
-const state = reactive({
- form: props.value.content,
- new_style: props.value.style,
-});
-// 如果需要解构,确保使用toRefs
-const { form, new_style } = toRefs(state);
+const form = computed(() => props.value?.content || {});
+const new_style = computed(() => props.value?.style || {});
+
// 将顶级的字段暴露给孙子组件, 避免传递层级太深
provide('field_list', computed(() => form.value?.field_list || []));
onBeforeMount(() => {
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index 5b4d85f7..467286ba 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -1,11 +1,11 @@
-
+
-
+
-
+
数据源
@@ -29,8 +29,8 @@
-
-
+
+
显示设置
@@ -47,8 +47,8 @@
-
-
+
+
数据设置
@@ -70,7 +70,7 @@
-
+
自定义编辑
@@ -102,7 +102,7 @@ const props = defineProps({
type: Number,
default: 390,
},
- isDataMagic: {
+ isSubcomponent: {
type: Boolean,
default: false,
}
diff --git a/src/components/model-custom/model-custom-styles.vue b/src/components/model-custom/model-custom-styles.vue
index e6c986bc..7b7645ea 100644
--- a/src/components/model-custom/model-custom-styles.vue
+++ b/src/components/model-custom/model-custom-styles.vue
@@ -2,7 +2,7 @@
-
+
轮播设置
@@ -19,13 +19,13 @@
-
-
+
+
-
+
-
+
数据样式
@@ -54,8 +54,8 @@
-
-
+
+
内容样式
@@ -75,8 +75,10 @@
-
-
+
+
+
+