-
-
Notifications
You must be signed in to change notification settings - Fork 47.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notification 支持隐藏右上角的 closeIcon #42736
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
Comments
把 |
没用。icon 外面还有一层 dom。即使隐藏了 icon,鼠标移到右上角时会触发外层 dom的 hover样式。 |
可以先样式 display:none |
外面有层 Dom 有 hover 样式 |
@jrr997 经过讨论,我们将会提供隐藏关闭按钮的方式,具体设计和开发进展会在这边同步,可以持续关注一下 |
v4 不添加新 feature 了,还是先魔改一下吧 |
v5 可以 closable={false},但是文档和 ts 没写,v4 写死为 false 了 |
afc163
added a commit
that referenced
this issue
Jun 2, 2023
20 tasks
afc163
added a commit
that referenced
this issue
Jun 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
notification 目前无法隐藏右上角的 closeIcon。我在 notification 的底部自定义了按钮,希望用户点击我的按钮来交互,而不是点击右上角直接把 notification 关闭。v4 能支持一下吗。
What does the proposed API look like?
传入一个 prop 控制显隐。
The text was updated successfully, but these errors were encountered: