x icon indicating copy to clipboard operation
x copied to clipboard

Attachment组件显示文件 icon可以自定义

Open gehuama opened this issue 7 months ago • 1 comments

需求动机

items 目前是根据fileName的后缀进行图标匹配,希望可以支持自定义 icon

提议的 API 是什么样的?

items 目前是根据fileName的后缀进行图标匹配,希望可以支持自定义 icon

gehuama avatar May 07 '25 06:05 gehuama

您提到的需求是希望在 Attachment 组件中支持自定义文件图标。目前,图标是根据文件名的后缀进行匹配的,您希望能够自定义图标以满足不同的需求。

这个需求已经在 issue #805 中被提出。根据您的描述,您希望通过 API 的方式来实现自定义图标的功能。

如果您有更多的细节或者具体的实现建议,可以继续在该 issue 中进行讨论和补充。团队会根据需求的优先级和可行性来考虑实现这个功能。

如果您有其他问题或者需要进一步的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

petercat-assistant[bot] avatar May 07 '25 06:05 petercat-assistant[bot]

FileCard icon options have been added in https://github.com/ant-design/x/pull/1006

kieranwv avatar Jul 07 '25 01:07 kieranwv

Attachment没有办法直接传递icon参数到其本身的FileCard

Yueyanc avatar Aug 28 '25 10:08 Yueyanc