From e7072107419f46f93453905ef2d5554594208c9b Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Thu, 16 Jan 2025 20:44:18 +0800 Subject: [PATCH] fix: last child should not appear margin (#52433) --- components/radio/style/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/radio/style/index.ts b/components/radio/style/index.ts index 9977070aee..57e0fd63cc 100644 --- a/components/radio/style/index.ts +++ b/components/radio/style/index.ts @@ -172,6 +172,10 @@ const getRadioBasicStyle: GenerateStyle = (token) => { marginInlineEnd: wrapperMarginInlineEnd, cursor: 'pointer', + '&:last-child': { + marginInlineEnd: 0, + }, + // RTL [`&${componentCls}-wrapper-rtl`]: { direction: 'rtl',