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
0efb4a58
Commit
0efb4a58
authored
Sep 30, 2017
by
Leopoldthecoder
Committed by
Black Wayne
Sep 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 2.0 alpha notification
parent
0f6f42f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
151 deletions
+29
-151
examples/app.vue
examples/app.vue
+29
-151
No files found.
examples/app.vue
View file @
0efb4a58
...
@@ -119,117 +119,6 @@
...
@@ -119,117 +119,6 @@
margin
:
20px
0
;
margin
:
20px
0
;
}
}
.carbon-teaser
{
border-radius
:
0
;
overflow
:
hidden
;
.el-dialog__header
{
display
:
none
;
}
.el-dialog__body
{
padding
:
0
;
display
:
flex
;
justify-content
:
center
;
position
:
relative
;
background
:
#000
;
}
.carbon-teaser__main
{
height
:
100vh
;
min-height
:
600px
;
}
.carbon-teaser__close
{
position
:
absolute
;
width
:
40px
;
height
:
40px
;
top
:
25px
;
right
:
45px
;
text-align
:
center
;
cursor
:
pointer
;
opacity
:
.8
;
transition
:
.2s
ease-out
;
&::after,
&::before
{
position
:
absolute
;
content
:
''
;
display
:
inline-block
;
width
:
4px
;
border-radius
:
1px
;
height
:
40px
;
background
:
#ff3737
;
box-shadow
:
1px
0
1px
0
rgba
(
255
,
255
,
255
,
.3
)
inset
,
-2px
0
1px
0
rgba
(
0
,
0
,
0
,
.1
)
inset
;
transition
:
.2s
ease-out
;
}
&
::after
{
transform
:
rotate
(
45deg
);
}
&
::before
{
transform
:
rotate
(
-45deg
);
}
&
:hover
{
opacity
:
1
;
&::after,
&::before
{
box-shadow
:
2px
0
1px
0
rgba
(
255
,
255
,
255
,
.4
)
inset
,
-2px
0
1px
0
rgba
(
0
,
0
,
0
,
.1
)
inset
,
0
0
10px
3px
#ff1616
;
}
}
}
.carbon-teaser__button
{
position
:
absolute
;
bottom
:
12%
;
display
:
block
;
width
:
400px
;
height
:
19.11%
;
[class*=carbon-teaser__more]
{
position
:
absolute
;
top
:
0
;
display
:
block
;
width
:
100%
;
height
:
100%
;
cursor
:
pointer
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
auto
80%
;
transition
:
.2s
ease-in
;
}
[
class
*=
dark
]
{
background-image
:
url(~examples/assets/images/button-d-cn.png)
;
&.is-en
{
background-image
:
url(~examples/assets/images/button-d-en.png)
;
}
}
[
class
*=
light
]
{
opacity
:
0
;
background-image
:
url(~examples/assets/images/button-l-cn.png)
;
&.is-en
{
background-image
:
url(~examples/assets/images/button-l-en.png)
;
}
}
&
:hover
{
[class*=light]
{
opacity
:
1
;
}
[
class
*=
dark
]
{
opacity
:
0
;
}
}
}
}
@media
(
max-width
:
1140px
)
{
@media
(
max-width
:
1140px
)
{
.container
,
.container
,
.page-container
{
.page-container
{
...
@@ -252,23 +141,6 @@
...
@@ -252,23 +141,6 @@
<router-view></router-view>
<router-view></router-view>
</div>
</div>
<main-footer
v-if=
"lang !== 'play'"
></main-footer>
<main-footer
v-if=
"lang !== 'play'"
></main-footer>
<el-dialog
:visible.sync=
"dialogVisible"
size=
"full"
custom-class=
"carbon-teaser"
@
close=
"handleDialogClose"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<img
src=
"https://i.loli.net/2017/09/27/59cb11edaa26d.jpg"
class=
"carbon-teaser__main"
>
<a
:href=
"hrefOfCarbonLearnMore"
target=
"_blank"
class=
"carbon-teaser__button"
>
<span
class=
"carbon-teaser__more-dark"
:class=
"lang !== 'zh-CN' && 'is-en'"
></span>
<span
class=
"carbon-teaser__more-light"
:class=
"lang !== 'zh-CN' && 'is-en'"
></span>
</a>
<div
class=
"carbon-teaser__close"
@
click=
"dialogVisible = false"
></div>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -281,19 +153,9 @@
...
@@ -281,19 +153,9 @@
export
default
{
export
default
{
name
:
'
app
'
,
name
:
'
app
'
,
data
()
{
return
{
dialogVisible
:
false
};
},
computed
:
{
computed
:
{
lang
()
{
lang
()
{
return
this
.
$route
.
path
.
split
(
'
/
'
)[
1
]
||
'
zh-CN
'
;
return
this
.
$route
.
path
.
split
(
'
/
'
)[
1
]
||
'
zh-CN
'
;
},
hrefOfCarbonLearnMore
()
{
return
this
.
lang
===
'
zh-CN
'
?
'
https://github.com/ElemeFE/element/issues/7236
'
:
'
https://github.com/ElemeFE/element/issues/7237
'
;
}
}
},
},
...
@@ -330,10 +192,6 @@
...
@@ -330,10 +192,6 @@
document
.
documentElement
.
scrollTop
=
document
.
body
.
scrollTop
=
elm
.
offsetTop
+
120
;
document
.
documentElement
.
scrollTop
=
document
.
body
.
scrollTop
=
elm
.
offsetTop
+
120
;
},
50
);
},
50
);
}
}
},
handleDialogClose
()
{
localStorage
.
setItem
(
'
CARBON_TEASER_V2
'
,
1
);
}
}
},
},
...
@@ -341,15 +199,35 @@
...
@@ -341,15 +199,35 @@
this
.
localize
();
this
.
localize
();
this
.
renderAnchorHref
();
this
.
renderAnchorHref
();
this
.
goAnchor
();
this
.
goAnchor
();
setTimeout
(()
=>
{
const
intrigued
=
localStorage
.
getItem
(
'
CARBON_TEASER_V2
'
);
const
notified
=
localStorage
.
getItem
(
'
ALPHA_NOTIFIED
'
);
if
(
!
intrigued
)
{
if
(
!
notified
)
{
const
img
=
new
Image
();
const
h
=
this
.
$createElement
;
img
.
onload
=
()
=>
{
const
title
=
this
.
lang
===
'
zh-CN
'
this
.
dialogVisible
=
true
;
?
'
2.0.0-alpha.1 发布
'
};
:
'
2.0.0-alpha.1 released
'
;
img
.
src
=
'
https://i.loli.net/2017/09/27/59cb11edaa26d.jpg
'
;
const
messages
=
this
.
lang
===
'
zh-CN
'
?
[
'
点击
'
,
'
这里
'
,
'
查看详情
'
]
:
[
'
Click
'
,
'
here
'
,
'
to learn more
'
];
this
.
$notify
.
success
({
title
,
duration
:
0
,
message
:
h
(
'
span
'
,
[
messages
[
0
],
h
(
'
a
'
,
{
attrs
:
{
target
:
'
_blank
'
,
href
:
`https://github.com/ElemeFE/element/issues/
${
this
.
lang
===
'
zh-CN
'
?
'
7304
'
:
'
7305
'
}
`
}
},
messages
[
1
]),
messages
[
2
]
]),
onClose
()
{
localStorage
.
setItem
(
'
ALPHA_NOTIFIED
'
,
1
);
}
});
}
}
},
3500
);
},
},
created
()
{
created
()
{
...
...
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