Browse Source

fix(Tree): fix tree drop indicator default direction (#28150)

pull/28161/head
Jingsong Gao 4 years ago
committed by GitHub
parent
commit
706ec5cdb1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/tree/utils/dropIndicator.tsx

2
components/tree/utils/dropIndicator.tsx

@ -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…
Cancel
Save