docs: fix tree demo (#35927)

This commit is contained in:
MadCcc 2022-06-06 23:23:11 +08:00 committed by GitHub
parent ae6279a1f1
commit 6e04120265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ const App: React.FC = () => {
{afterStr}
</span>
) : (
<span>{item.title}</span>
<span>{strTitle}</span>
);
if (item.children) {
return { title, key: item.key, children: loop(item.children) };