diff --git a/components/tabs/style/index.ts b/components/tabs/style/index.ts index 73cbda9edf..7d263bfe46 100644 --- a/components/tabs/style/index.ts +++ b/components/tabs/style/index.ts @@ -1003,8 +1003,8 @@ const genTabsStyle: GenerateStyle = (token: TabsToken): CSSObject => [`${componentCls}-centered`]: { [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: { [`${componentCls}-nav-wrap`]: { - [`&:not([class*='${componentCls}-nav-wrap-ping'])`]: { - justifyContent: 'center', + [`&:not([class*='${componentCls}-nav-wrap-ping']) > ${componentCls}-nav-list`]: { + margin: 'auto', }, }, },