Browse Source

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

林艳 1 week ago
parent
commit
47eceb7d98
2 changed files with 2 additions and 2 deletions
  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>
         );