refactor(DirectoryTree): simplify code (#38184)
refactor(DirectoryTree): simplify code (#38184)


ant-design/ant-design,ant-design/ant-design,ant-design/ant-design,elevensky/ant-design,ant-design/ant-design,elevensky/ant-design,elevensky/ant-design,elevensky/ant-design