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
97fd93e6
Commit
97fd93e6
authored
Jul 03, 2018
by
k-okina
Committed by
hetech
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notification: remove vm attribute (#11830)
parent
5ef3d0ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
packages/notification/src/main.js
packages/notification/src/main.js
+5
-5
No files found.
packages/notification/src/main.js
View file @
97fd93e6
...
@@ -28,10 +28,10 @@ const Notification = function(options) {
...
@@ -28,10 +28,10 @@ const Notification = function(options) {
options
.
message
=
'
REPLACED_BY_VNODE
'
;
options
.
message
=
'
REPLACED_BY_VNODE
'
;
}
}
instance
.
id
=
id
;
instance
.
id
=
id
;
instance
.
vm
=
instance
.
$mount
();
instance
.
$mount
();
document
.
body
.
appendChild
(
instance
.
vm
.
$el
);
document
.
body
.
appendChild
(
instance
.
$el
);
instance
.
v
m
.
v
isible
=
true
;
instance
.
visible
=
true
;
instance
.
dom
=
instance
.
vm
.
$el
;
instance
.
dom
=
instance
.
$el
;
instance
.
dom
.
style
.
zIndex
=
PopupManager
.
nextZIndex
();
instance
.
dom
.
style
.
zIndex
=
PopupManager
.
nextZIndex
();
let
verticalOffset
=
options
.
offset
||
0
;
let
verticalOffset
=
options
.
offset
||
0
;
...
@@ -41,7 +41,7 @@ const Notification = function(options) {
...
@@ -41,7 +41,7 @@ const Notification = function(options) {
verticalOffset
+=
16
;
verticalOffset
+=
16
;
instance
.
verticalOffset
=
verticalOffset
;
instance
.
verticalOffset
=
verticalOffset
;
instances
.
push
(
instance
);
instances
.
push
(
instance
);
return
instance
.
vm
;
return
instance
;
};
};
[
'
success
'
,
'
warning
'
,
'
info
'
,
'
error
'
].
forEach
(
type
=>
{
[
'
success
'
,
'
warning
'
,
'
info
'
,
'
error
'
].
forEach
(
type
=>
{
...
...
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