CloseIcion not working
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
使用 rc-notification 3.3.0 和所示的 closable/closeIcon 示例重现通知,然后追踪 closeIcon 值是如何渲染的。分别使用自定义元素和 SVG 确认该行为;当提供的图标显示出来且通知仍然可以关闭时,issue 即完成。
由索引模型根据 Issue 内容生成。
描述
version used : "rc-notification": "3.3.0",
i am trying to use my own close icon but its not working i have tried with svg also
Notification.newInstance({}, notification => {
notification.notice({
content: 'content',
closable: true,
duration: 50,
closeIcon: <div>X</div>
});
});
- 主要语言
- TypeScript
- 星标
- 384
- 派生
- 121
- 平均合并
- 1 小时 31 分钟
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/notification 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
react-component/notification#382 ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-component/notification#356 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
react-component/notification#333 ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-component/notification#307 ·
-
难度 3/5 1-2 天 新手友好度 48/100
react-component/notification#305 ·
查看 react-component/notification 的全部 Issue
相似的 Issue
-
triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
agent-ready area: config area: skills type: chore upstream: brain-kit
难度 1/5 1 小时以内 新手友好度 95/100
-
enhancement priority:low ready-for-dev
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug escritorio mapa
难度 2/5 1-3 小时 新手友好度 72/100
marcosferr/reporte-ciudadano#4 · 1 条评论 ·
-
area: material/sort gemini-triaged needs triage
难度 2/5 1-3 小时 新手友好度 70/100
angular/components#33933 ·
维护者通常 1 天内回复