react-component / react-component/notification

closable 和 closeIcon 是不是没有用啊. 为什么我 传什么都是没有效果

Open
#108 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.