From 4c14864effb3604043c261ed20856df2fecaecf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=8C=AF=E7=A5=96?= Date: Wed, 12 Mar 2025 19:23:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#8064=20=E4=BF=AE=E5=A4=8D=20tree=20chec?= =?UTF-8?q?kbox=20=E5=9E=82=E7=9B=B4=E5=AF=B9=E9=BD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除不必要的 checkbox vertical margin,因为 checkbox 样式已将自身设置为 align-self: center; --- components/tree/style/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/tree/style/index.ts b/components/tree/style/index.ts index 71c64a693a..4352aafa75 100644 --- a/components/tree/style/index.ts +++ b/components/tree/style/index.ts @@ -65,7 +65,6 @@ type TreeToken = DerivativeToken & { export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject => { const { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight } = token; - const treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2; const treeCheckBoxMarginHorizontal = token.paddingXS; return { @@ -260,7 +259,6 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject => [`${treeCls}-checkbox`]: { top: 'initial', marginInlineEnd: treeCheckBoxMarginHorizontal, - marginBlockStart: treeCheckBoxMarginVertical, }, // >>> Title