Forráskód Böngészése

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

林艳 1 hete
szülő
commit
47eceb7d98

+ 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>
         );