From 7d165b815cbdbf4ab1b6f8828ef809a32ac1fea6 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, 25 Dec 2024 18:10:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/base/slider/index.vue | 7 +----
.../custom-module/custom-location/index.vue | 15 ++++++++++
.../model-custom-group-style.vue | 29 +++++--------------
.../model-icon/model-icon-style.vue | 24 +++------------
.../model-image/model-image-style.vue | 24 +++------------
.../model-lines/model-lines-style.vue | 23 +++------------
.../model-panel/model-panel-style.vue | 25 +++-------------
.../model-text/model-text-style.vue | 24 +++------------
.../model-custom/components/index.vue | 4 +--
9 files changed, 45 insertions(+), 130 deletions(-)
create mode 100644 src/components/common/custom-module/custom-location/index.vue
diff --git a/src/components/base/slider/index.vue b/src/components/base/slider/index.vue
index d2559a29..28fa4c65 100644
--- a/src/components/base/slider/index.vue
+++ b/src/components/base/slider/index.vue
@@ -1,11 +1,6 @@
-
-
-
-
-
-
+
diff --git a/src/components/common/custom-module/custom-location/index.vue b/src/components/common/custom-module/custom-location/index.vue
new file mode 100644
index 00000000..1dd9658e
--- /dev/null
+++ b/src/components/common/custom-module/custom-location/index.vue
@@ -0,0 +1,15 @@
+
+
+ 定位设置
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/common/custom-module/model-custom-group/model-custom-group-style.vue b/src/components/common/custom-module/model-custom-group/model-custom-group-style.vue
index 0169b06c..555ab531 100644
--- a/src/components/common/custom-module/model-custom-group/model-custom-group-style.vue
+++ b/src/components/common/custom-module/model-custom-group/model-custom-group-style.vue
@@ -1,15 +1,7 @@
-
- 定位设置
-
-
-
-
-
-
-
+
容器设置
@@ -26,7 +18,6 @@
- {{ diy_data.location.x }}
@@ -46,15 +37,15 @@ const props = defineProps({
},
});
// 默认值
+const tabs_name = 'content';
+const center_height = defineModel('height', { type: Number, default: 0 });
const state = reactive({
diy_data: props.value,
});
// 如果需要解构,确保使用toRefs
const { diy_data } = toRefs(state);
const form = ref(diy_data.value.com_data);
-const tabs_name = 'content';
-const center_height = defineModel('height', { type: Number, default: 0 });
-
+//#region 自定义组的编辑功能
const emit = defineEmits(['custom_edit']);
const custom_edit = () => {
const { custom_list, com_width, custom_height } = form.value;
@@ -62,15 +53,8 @@ const custom_edit = () => {
const width = form.value.data_source_direction != 'vertical-scroll' ? com_width / form.value.data_source_carousel_col : com_width; // 可拖拽区域的宽度
emit('custom_edit', diy_data.value.id, custom_list, width, custom_height);
};
-// x轴变化时,更新记录的位置
-const location_x_change = (val: number) => {
- diy_data.value.location.record_x = val;
-}
-// y轴变化时,更新记录的位置
-const location_y_change = (val: number) => {
- diy_data.value.location.record_y = val;
- diy_data.value.location.staging_y = val;
-}
+//# endregion
+//#region 位置计算
// 监听数据变化
watch(
diy_data,
@@ -85,6 +69,7 @@ watch(
},
{ immediate: true, deep: true }
);
+//#endregion