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