mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
defaultDuration should be 4.5 seconds (#1778)
This commit is contained in:
parent
5c9b4b4296
commit
b9cbb21f55
@ -3,7 +3,7 @@ order: 0
|
||||
title: 基本
|
||||
---
|
||||
|
||||
最简单的用法,五秒后自动关闭。
|
||||
最简单的用法,4.5 秒后自动关闭。
|
||||
|
||||
````jsx
|
||||
import { Button, notification } from 'antd';
|
||||
|
@ -5,7 +5,7 @@ import warning from 'warning';
|
||||
|
||||
let defaultTop = 24;
|
||||
let notificationInstance;
|
||||
let defaultDuration = 45;
|
||||
let defaultDuration = 4.5;
|
||||
|
||||
function getNotificationInstance() {
|
||||
if (notificationInstance) {
|
||||
|
Loading…
Reference in New Issue
Block a user