为Attachments的items添加点击事件
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.2k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 2
Description
### 需求动机
想要对非图片类型的文件进行点击预览。现在items渲染后的列表项无法点击,onPreview预览事件无法触发。或者支持自定义item。
### 提议的 API 是什么样的?
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Attachments component and the rendering path for its items, then inspect how the onPreview callback is currently wired. Clarify whether the intended result is clickable previews for non-image files or support for custom items; done should make the selected behavior trigger preview reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100