fix: Tree style mistake (#51492)

This commit is contained in:
二货爱吃白萝卜 2024-11-05 16:18:53 +08:00 committed by GitHub
parent 4f1e56f31c
commit 6f8726fdce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,10 +3,10 @@ import { Keyframes, unit } from '@ant-design/cssinjs';
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
import { genFocusOutline, resetComponent } from '../../style';
import { genDirectoryStyle } from './directory';
import { genCollapseMotion } from '../../style/motion';
import type { AliasToken, CSSUtil, FullToken, GetDefaultToken } from '../../theme/internal';
import { genStyleHooks, mergeToken } from '../../theme/internal';
import { genDirectoryStyle } from './directory';
export interface TreeSharedToken {
/**
@ -316,7 +316,8 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
[`${treeCls}-node-content-wrapper`]: {
position: 'relative',
minHeight: titleHeight,
padding: `0 ${token.paddingXS}`,
paddingBlock: 0,
paddingInline: token.paddingXS,
background: 'transparent',
borderRadius: token.borderRadius,
cursor: 'pointer',