Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
web-music
提交
ebd5ac28
W
web-music
项目概览
OpenDocCN
/
web-music
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
web-music
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ebd5ac28
编写于
6月 17, 2019
作者:
阿
阿炸克斯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增loading加载
上级
72957960
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
99 addition
and
4 deletion
+99
-4
app/css/base.css
app/css/base.css
+49
-1
app/css/base.scss
app/css/base.scss
+46
-0
app/index.html
app/index.html
+4
-3
未找到文件。
app/css/base.css
浏览文件 @
ebd5ac28
...
...
@@ -100,7 +100,8 @@ table {
right
:
0
;
height
:
45px
;
box-shadow
:
0
0
5px
#ccc
;
background-color
:
#fff
;
}
background-color
:
#fff
;
z-index
:
10
;
}
.header-search
input
{
width
:
100%
;
height
:
100%
;
...
...
@@ -231,3 +232,50 @@ table {
width
:
150px
;
margin
:
10px
auto
;
display
:
block
;
}
.loading-wrap
{
text-align
:
center
;
font-size
:
14px
;
color
:
#ccc
;
margin-top
:
100px
;
}
.loading-wrap
.first-loading
{
position
:
relative
;
width
:
50px
;
/*no*/
height
:
50px
;
/*no*/
border
:
2px
solid
#ccc
;
/*no*/
border-radius
:
50%
;
border-left
:
2px
solid
transparent
;
/*no*/
box-sizing
:
border-box
;
padding
:
0
;
margin
:
0
auto
10px
;
display
:
block
;
animation
:
loading
1s
linear
infinite
;
}
.loading-wrap
.first-loading
:after
{
position
:
absolute
;
content
:
""
;
top
:
-2px
;
/*no*/
left
:
-2px
;
/*no*/
bottom
:
-2px
;
/*no*/
right
:
-2px
;
/*no*/
border
:
2px
solid
transparent
;
/*no*/
border-radius
:
50%
;
border-left
:
2px
solid
#ccc
;
/*no*/
box-sizing
:
border-box
;
transform-origin
:
center
center
;
transform
:
rotate
(
50deg
);
}
@keyframes
loading
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
app/css/base.scss
浏览文件 @
ebd5ac28
...
...
@@ -22,6 +22,7 @@ $bottom-height: 80px;
height
:
$top-height
;
box-shadow
:
0
0
5px
#ccc
;
background-color
:
#fff
;
z-index
:
10
;
input
{
width
:
100%
;
...
...
@@ -201,3 +202,48 @@ $bottom-height: 80px;
display
:
block
;
}
}
.loading-wrap
{
text-align
:
center
;
font-size
:
14px
;
color
:
#ccc
;
margin-top
:
100px
;
.first-loading
{
position
:
relative
;
width
:
50px
;
/*no*/
height
:
50px
;
/*no*/
border
:
2px
solid
#ccc
;
/*no*/
border-radius
:
50%
;
border-left
:
2px
solid
transparent
;
/*no*/
box-sizing
:
border-box
;
padding
:
0
;
margin
:
0
auto
10px
;
display
:
block
;
animation
:
loading
1s
linear
infinite
;
}
.first-loading
:after
{
position
:
absolute
;
content
:
""
;
top
:
-2px
;
/*no*/
left
:
-2px
;
/*no*/
bottom
:
-2px
;
/*no*/
right
:
-2px
;
/*no*/
border
:
2px
solid
transparent
;
/*no*/
border-radius
:
50%
;
border-left
:
2px
solid
#ccc
;
/*no*/
box-sizing
:
border-box
;
transform-origin
:
center
center
;
transform
:
rotate
(
50deg
);
}
}
@keyframes
loading
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
app/index.html
浏览文件 @
ebd5ac28
...
...
@@ -6,9 +6,6 @@
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
听音乐
</title>
<link
href=
"//fonts.googleapis.com/css?family=Monda:300,300italic,400,400italic,700,700italic|Roboto Slab:300,300italic,400,400italic,700,700italic|Rosario:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext"
rel=
"stylesheet"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"./css/base.css"
>
</head>
<body>
...
...
@@ -17,6 +14,10 @@
<div
class=
"header-search"
>
<input
type=
"text"
@
input=
"search"
placeholder=
"请输入要搜索的歌曲名称"
>
</div>
<div
class=
"loading-wrap"
v-show=
"list.length === 0"
>
<div
class=
"first-loading"
></div>
<div>
加载中,请稍后
</div>
</div>
<!--列表-->
<div
class=
"music-list"
>
<div
class=
"item"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录