We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27ad04 commit 2a764beCopy full SHA for 2a764be
packages/notification/src/main.js
@@ -1,5 +1,6 @@
1
import Vue from 'vue';
2
import Main from './main.vue';
3
+import merge from 'element-ui/src/utils/merge';
4
import { PopupManager } from 'element-ui/src/utils/popup';
5
import { isVNode } from 'element-ui/src/utils/vdom';
6
const NotificationConstructor = Vue.extend(Main);
@@ -10,7 +11,7 @@ let seed = 1;
10
11
12
const Notification = function(options) {
13
if (Vue.prototype.$isServer) return;
- options = options || {};
14
+ options = merge({}, options);
15
const userOnClose = options.onClose;
16
const id = 'notification_' + seed++;
17
const position = options.position || 'top-right';
0 commit comments