修改跟随下处理逻辑

v1.2.0
于肖磊 2025-02-26 18:21:45 +08:00
parent de14881d40
commit b150d75313
6 changed files with 42 additions and 30 deletions

View File

@ -99,11 +99,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
//
const container_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}
//

View File

@ -170,11 +170,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
//
const container_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}

View File

@ -144,11 +144,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
const img_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}
//#region

View File

@ -108,11 +108,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
//
const container_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}
//

View File

@ -130,11 +130,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
//
const container_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}
//

View File

@ -248,11 +248,13 @@ const size_location_change = (location: { x: number, y: number, record_x: number
//
const container_size_change = () => {
const { spacing = 0, type = 'left', id = '' } = form.value.data_follow;
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
if (id != '') {
//
const { x: new_x, y: new_y } = get_container_location(props.componentOptions, id, type, spacing, diy_data.value.location.x, diy_data.value.location.y);
//
diy_data.value.location = { x: new_x, y: new_y, record_x: new_x, record_y: new_y, staging_y: new_y };
size_location_change(diy_data.value.location);
}
operation_end();
}
//