ant-design/components/notification/demo/duration.md

8 lines
405 B
Markdown
Raw Normal View History

2016-08-17 11:07:02 +08:00
## zh-CN
2020-11-08 15:04:02 +08:00
自定义通知框自动关闭的延时,默认 `4.5s`,取消自动关闭只要将该值设为 `0` 即可。
2015-08-03 15:17:12 +08:00
2016-08-17 11:07:02 +08:00
## en-US
2019-05-07 14:57:32 +08:00
`Duration` can be used to specify how long the notification stays open. After the duration time elapses, the notification closes automatically. If not specified, default value is 4.5 seconds. If you set the value to 0, the notification box will never close automatically.