From de14881d40d59c78898f869fcde3b2239465a712 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 18:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8F=90=E7=A4=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/components/index.vue | 4 ++-- src/utils/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index b7c402aa..97d56a7d 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -1136,14 +1136,14 @@ const handleKeyUp = (e: KeyboardEvent) => { if (isWithinBounds(item.location.x + x, item.com_data.com_width, 390) && (id === '' || (id != '' && type == 'top'))) { item.location.x += x; } else if (id != '' && type == 'left' && x !== 0) { - ElMessage.info('当前组件已经左跟随其他组件,x轴不允许修改'); + ElMessage.warning('当前组件已经左跟随其他组件,x轴不允许修改'); } // Y轴不小于0 并且不大于容器高度 if (isWithinBounds(item.location.y + y, item.com_data.com_height, center_height.value) && (id === '' || (id != '' && type == 'left'))) { item.location.y += y; item.location.staging_y += y; } else if (id != '' && type == 'top' && y !== 0) { - ElMessage.info('当前组件已经上跟随其他组件,y轴不允许修改'); + ElMessage.warning('当前组件已经上跟随其他组件,y轴不允许修改'); } operation_end(get_history_name(item)); } diff --git a/src/utils/index.ts b/src/utils/index.ts index dd339280..cdb14e06 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -897,12 +897,12 @@ export const new_location_handle = (old_location: Location, data_follow: DataFol if (data_follow.id != '') { if (data_follow.type == 'left') { if (old_location.x !== x) { - ElMessage.info('当前组件已经左跟随其他组件,x轴不允许修改'); + ElMessage.warning('当前组件已经左跟随其他组件,x轴不允许修改'); } new_y = y; } else if (data_follow.type == 'top') { if (old_location.y !== y) { - ElMessage.info('当前组件已经上跟随其他组件,y轴不允许修改'); + ElMessage.warning('当前组件已经上跟随其他组件,y轴不允许修改'); } new_x = x; }