Skip to content

Commit 4c14864

Browse files
author
金振祖
committed
fix: vueComponent#8064 修复 tree checkbox 垂直对齐问题
- 移除不必要的 checkbox vertical margin,因为 checkbox 样式已将自身设置为 align-self: center;
1 parent aa211fd commit 4c14864

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/tree/style/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ type TreeToken = DerivativeToken & {
6565
export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject => {
6666
const { treeCls, treeNodeCls, treeNodePadding, treeTitleHeight } = token;
6767

68-
const treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2;
6968
const treeCheckBoxMarginHorizontal = token.paddingXS;
7069

7170
return {
@@ -260,7 +259,6 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
260259
[`${treeCls}-checkbox`]: {
261260
top: 'initial',
262261
marginInlineEnd: treeCheckBoxMarginHorizontal,
263-
marginBlockStart: treeCheckBoxMarginVertical,
264262
},
265263

266264
// >>> Title

0 commit comments

Comments
 (0)