[RFC] Notification & Message support stacking #44359
MadCcc
announced in
RFCs - archive
Replies: 4 comments 8 replies
-
是默认堆叠指定层数,还是可配置的呢 |
Beta Was this translation helpful? Give feedback.
3 replies
-
多个分组如何区分呢? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Hey, why can we not setup the notification options for stack, maxCount and duration using the useEffect(() => {
notification.config({
duration: 5,
maxCount: 3,
});
}, []); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Notification and Message support stacking when there's several instances displayed at the same time.
Activation
Currently when there's many Notification appears, it will be look like:
For better arrangement and Space utilization, we decided to provide a variant to place theme together, just like what IOS did:
API
In
notification.useNotification(config)
,config
provide one new prop:StackConfig
:Basic Example
Detailed Design
Group Rules
maxCount
,stack
will not work.group
attribute.Display
Beta Was this translation helpful? Give feedback.
All reactions