소스 검색

docs: update tree renderFullLabel label to let single select has normal indentation

林艳 1 주 전
부모
커밋
47eceb7d98
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      content/navigation/tree/index-en-US.md
  2. 1 1
      content/navigation/tree/index.md

+ 1 - 1
content/navigation/tree/index-en-US.md

@@ -1959,7 +1959,7 @@ import { Tree } from '@douyinfe/semi-ui';
                 role="treeitem"
                 onClick={isLeaf ? onClick : onExpand}
             >
-                {isLeaf ? null : expandIcon}
+                {expandIcon}
                 <span>{label}</span>
             </li>
         );

+ 1 - 1
content/navigation/tree/index.md

@@ -1982,7 +1982,7 @@ import { Tree } from '@douyinfe/semi-ui';
                 role="treeitem"
                 onClick={isLeaf ? onClick : onExpand}
             >
-                {isLeaf ? null : expandIcon}
+                {expandIcon}
                 <span>{label}</span>
             </li>
         );