|
@@ -8,7 +8,7 @@ import Notify from './notify'
|
|
|
* 接收参数:
|
|
|
* type: 信息提示框类型, 包括success、error、info。
|
|
|
* content: 信息提示框文本内容
|
|
|
- * duration: 自动关闭的延时,单位毫秒。默认3000毫秒,设为 0 时不自动关闭。
|
|
|
+ * duration: 自动关闭的延时,单位毫秒。默认2000毫秒,设为 0 时不自动关闭。
|
|
|
* 用法如下:
|
|
|
* Notify.success('删除成功')
|
|
|
***/
|
|
@@ -29,7 +29,7 @@ function createNotification() {
|
|
|
}
|
|
|
|
|
|
let notification
|
|
|
-const notice = (type, content, duration=3000, onClose) => {
|
|
|
+const notice = (type, content, duration=2000, onClose) => {
|
|
|
if (!notification) notification = createNotification()
|
|
|
return notification.addNotice({ type, content, duration, onClose })
|
|
|
}
|