From f156491ae2bdfa1b7285aa82ef1a6e8c4b1e2590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 26 Feb 2025 14:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=B7=9F=E9=9A=8F?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-module/custom-location/index.vue | 10 +- .../custom-module/data-rendering/index.vue | 140 +++++++++++++----- .../common/custom-module/model-text/index.vue | 37 ++--- .../model-text/model-text-style.vue | 1 - .../common/subscript/subscript-content.vue | 3 + .../common/subscript/subscript-styles.vue | 3 + .../model-article-tabs-content.vue | 25 +++- .../components/custom-config/index.vue | 2 +- .../model-custom/components/index.vue | 62 +++++--- .../model-data-tabs-content.vue | 24 ++- .../model-goods-tabs-content.vue | 23 ++- src/components/page-settings/page-styles.vue | 8 +- src/config/const/article-tabs.ts | 2 + src/config/const/data-tabs.ts | 2 + src/config/const/goods-tabs.ts | 2 + src/utils/index.ts | 2 - src/views/layout/index.vue | 12 +- 17 files changed, 247 insertions(+), 111 deletions(-) diff --git a/src/components/common/custom-module/custom-location/index.vue b/src/components/common/custom-module/custom-location/index.vue index 17103951..17e30357 100644 --- a/src/components/common/custom-module/custom-location/index.vue +++ b/src/components/common/custom-module/custom-location/index.vue @@ -2,7 +2,7 @@
定位设置
- + @@ -56,6 +56,14 @@ const location_y_change = (val: number) => { data_location.value.record_y = val; data_location.value.staging_y = val }; +// 数据源id变化时,更新记录的数据,避免出现清空之后为undefined的情况 +const data_follow_id_change = (val: string) => { + if (!isEmpty(val)) { + data_follow.value.id = val; + } else { + data_follow.value.id = ''; + } +}; // 跟随id发生变化时的处理 watch(() => data_follow.value, (val) => { diff --git a/src/components/common/custom-module/data-rendering/index.vue b/src/components/common/custom-module/data-rendering/index.vue index 284cea7e..e9677e73 100644 --- a/src/components/common/custom-module/data-rendering/index.vue +++ b/src/components/common/custom-module/data-rendering/index.vue @@ -1,7 +1,7 @@