Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tree] icon 支持传入 (props)=>ReactNode #2236

Closed
shaoerkuai opened this issue May 14, 2024 · 1 comment
Closed

[Tree] icon 支持传入 (props)=>ReactNode #2236

shaoerkuai opened this issue May 14, 2024 · 1 comment
Labels
feature request Request new feature

Comments

@shaoerkuai
Copy link

Which Component Need Enhancement 期望新增功能的组件

  • Tree

What does the proposed API look like 期望支持的API

Icon除了支持ReactNode以外还能支持(props)=>ReactNode

Feature Description 功能描述

我是在做一个文件在线浏览的一个web应用,所以icon希望能根据文件扩展名来变换展示,比如.js的文件展示js的图标,py的文件展示py的图标。

我可以根据props带参来判断文件格式决定返回什么Icon,但是目前发现Semi.design的Icon只能传ReactNode,希望还是支持下

Additional information 补充说明

@shaoerkuai shaoerkuai added the feature request Request new feature label May 14, 2024
@pointhalo
Copy link
Collaborator

image
v2.59.0-beta.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants