react-component / react-component/notification
closable 和 closeIcon 是不是没有用啊. 为什么我 传什么都是没有效果
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 118
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 2
Description
Notification.newInstance({}, notification => {
notification.notice({
content: 'content',
closable: true,
duration: 50,
closeIcon: <div>X</div>
});
});
只看到有dom 结构 看不到 closeIcon 生效
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Notification.newInstance and notification.notice snippet with closable and closeIcon, then trace the notice rendering entry point to see why the close control is not visible or effective. Done means a closable notice displays a working close control and the supplied closeIcon is rendered as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100