mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix(Tree): fix tree drop indicator default direction (#28150)
This commit is contained in:
parent
ca5b47f674
commit
706ec5cdb1
@ -9,7 +9,7 @@ export default function dropIndicatorRender(props: {
|
||||
prefixCls: string;
|
||||
direction: 'ltr' | 'rtl';
|
||||
}) {
|
||||
const { dropPosition, dropLevelOffset, prefixCls, indent, direction } = props;
|
||||
const { dropPosition, dropLevelOffset, prefixCls, indent, direction = 'ltr' } = props;
|
||||
const startPosition = direction === 'ltr' ? 'left' : 'right';
|
||||
const endPosition = direction === 'ltr' ? 'right' : 'left';
|
||||
const style: React.CSSProperties = {
|
||||
|
Loading…
Reference in New Issue
Block a user