Commit ec3326e0 authored by iamkun's avatar iamkun Committed by hetech

Notification: Fix modifying incoming option object (#16704)

parent 484a033a
import Vue from 'vue';
import Main from './main.vue';
import merge from 'element-ui/src/utils/merge';
import { PopupManager } from 'element-ui/src/utils/popup';
import { isVNode } from 'element-ui/src/utils/vdom';
const NotificationConstructor = Vue.extend(Main);
......@@ -10,7 +11,7 @@ let seed = 1;
const Notification = function(options) {
if (Vue.prototype.$isServer) return;
options = options || {};
options = merge({}, options);
const userOnClose = options.onClose;
const id = 'notification_' + seed++;
const position = options.position || 'top-right';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment