Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-site
Commits
92515163
Commit
92515163
authored
Oct 19, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式溢出
parent
a2e304b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
55 deletions
+3
-55
loading.vue
components/loading.vue
+0
-52
nuxt.config.js
nuxt.config.js
+1
-1
index.vue
pages/index.vue
+1
-1
index.vue
pages/index/index.vue
+1
-1
No files found.
components/loading.vue
deleted
100644 → 0
View file @
a2e304b1
<
template
>
<div
class=
"spinner"
v-if=
"loading"
></div>
</
template
>
<
script
>
export
default
{
data
:()
=>
({
loading
:
false
}),
methods
:{
//start和finish是nuxt的loading内置的方法
start
(){
this
.
loading
=
true
;
},
finish
(){
this
.
loading
=
false
;
}
}
}
</
script
>
<
style
scoped
>
.spinner
{
width
:
60px
;
height
:
60px
;
background-color
:
#399
;
position
:
fixed
;
top
:
50%
;
left
:
50%
;
-webkit-animation
:
rotateplane
1.2s
infinite
ease-in-out
;
animation
:
rotateplane
1.2s
infinite
ease-in-out
;
}
@-webkit-keyframes
rotateplane
{
0
%
{
-webkit-transform
:
perspective
(
120px
)
}
50
%
{
-webkit-transform
:
perspective
(
120px
)
rotateY
(
180deg
)
}
100
%
{
-webkit-transform
:
perspective
(
120px
)
rotateY
(
180deg
)
rotateX
(
180deg
)
}
}
@keyframes
rotateplane
{
0
%
{
transform
:
perspective
(
120px
)
rotateX
(
0deg
)
rotateY
(
0deg
);
-webkit-transform
:
perspective
(
120px
)
rotateX
(
0deg
)
rotateY
(
0deg
)
}
50
%
{
transform
:
perspective
(
120px
)
rotateX
(
-180.1deg
)
rotateY
(
0deg
);
-webkit-transform
:
perspective
(
120px
)
rotateX
(
-180.1deg
)
rotateY
(
0deg
)
}
100
%
{
transform
:
perspective
(
120px
)
rotateX
(
-180deg
)
rotateY
(
-179.9deg
);
-webkit-transform
:
perspective
(
120px
)
rotateX
(
-180deg
)
rotateY
(
-179.9deg
);
}
}
</
style
>
\ No newline at end of file
nuxt.config.js
View file @
92515163
...
...
@@ -34,7 +34,7 @@ export default {
** Global CSS
loading:'~/components/loading.vue'
*/
loading
:
'~/components/loading.vue'
,
/* loading:'~/components/loading.vue', */
css
:
[
'element-ui/lib/theme-chalk/index.css'
],
...
...
pages/index.vue
View file @
92515163
...
...
@@ -47,7 +47,7 @@ export default {
<
style
scoped
>
.home
{
width
:
100
%
;
width
:
99
%
;
min-width
:
810px
;
height
:
100%
;
min-height
:
600px
;
...
...
pages/index/index.vue
View file @
92515163
...
...
@@ -416,6 +416,6 @@ import Cookies from "js-cookie"
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
width
:
20
0px
width
:
15
0px
}
</
style
>
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