Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
ec3326e0
Commit
ec3326e0
authored
Jul 31, 2019
by
iamkun
Committed by
hetech
Jul 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notification: Fix modifying incoming option object (#16704)
parent
484a033a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
packages/notification/src/main.js
packages/notification/src/main.js
+2
-1
No files found.
packages/notification/src/main.js
View file @
ec3326e0
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
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment