From 548a178a55550f8577dc42320f90a0263810f700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 9 Jul 2026 12:42:00 +0800 Subject: [PATCH] =?UTF-8?q?style(component):=20=E8=B0=83=E6=95=B4=E6=A8=A1?= =?UTF-8?q?=E6=80=81=E6=A1=86=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将关闭按钮距离顶部和右侧的间距从0调整为10px - 增加最大化按钮存在时关闭按钮的右侧间距从30px到40px - 优化关闭按钮的位置以提升界面美观和易用性 --- src/styles/component.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/styles/component.less b/src/styles/component.less index 1881a4c..10d61f7 100644 --- a/src/styles/component.less +++ b/src/styles/component.less @@ -90,8 +90,8 @@ .ele-modal .ant-modal-header { .ant-modal-close { position: absolute; - top: 0; - right: 0; + top: 10px; + right: 10px; width: 30px; height: 30px; display: flex; @@ -103,15 +103,15 @@ /* 当存在最大化按钮时,关闭按钮左移 */ .ele-modal-maximize-btn + .ant-modal-close, .ele-modal-maximize-btn ~ .ant-modal-close { - right: 30px; + right: 40px; } } /* 针对 ant-modal 关闭按钮的兜底修复 */ .ant-modal .ant-modal-close { position: absolute; - top: 0; - right: 0; + top: 10px; + right: 10px; width: 30px; height: 30px; display: flex;