Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
宝璐
VueJS-music
提交
27d1de12
V
VueJS-music
项目概览
宝璐
/
VueJS-music
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
19
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VueJS-music
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
27d1de12
编写于
8月 30, 2023
作者:
Q
qq_42254384
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto Commit
上级
fb9d2a44
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
69 addition
and
3 deletion
+69
-3
src/App.vue
src/App.vue
+4
-0
src/assets/cock.png
src/assets/cock.png
+0
-0
src/assets/kunkun.png
src/assets/kunkun.png
+0
-0
src/components/dancePNG.vue
src/components/dancePNG.vue
+62
-0
src/components/searchForm.vue
src/components/searchForm.vue
+0
-1
src/components/songList.vue
src/components/songList.vue
+3
-2
未找到文件。
src/App.vue
浏览文件 @
27d1de12
...
@@ -19,6 +19,10 @@ import songList from "./components/songList.vue";
...
@@ -19,6 +19,10 @@ import songList from "./components/songList.vue";
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
*
{
padding
:
0
;
margin
:
0
;
}
.musicContainer
{
.musicContainer
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
...
...
src/assets/cock.png
0 → 100644
浏览文件 @
27d1de12
5.1 MB
src/assets/kunkun.png
0 → 100644
浏览文件 @
27d1de12
2.3 MB
src/components/dancePNG.vue
0 → 100644
浏览文件 @
27d1de12
<
template
>
<div
style=
"width:90px;height:100px;overflow:hidden;float:left;"
>
<div
class=
"imgDiv"
:style=
"
{
backgroundImage: `url(${danceInfo.who})`,
backgroundPosition: `${img.x}px ${img.y}px`
}">
</div>
</div>
</
template
>
<
script
setup
>
import
{
onMounted
,
ref
}
from
"
vue
"
import
kunkun
from
"
./../assets/kunkun.png
"
import
cock
from
"
./../assets/cock.png
"
const
whoDance
=
Math
.
random
()
const
danceInfo
=
ref
({
who
:
whoDance
>
0.5
?
kunkun
:
cock
,
r
:
whoDance
>
0.5
?
5
:
5
,
l
:
whoDance
>
0.5
?
6
:
4
})
const
img
=
ref
({
x
:
0
,
y
:
0
})
const
obj
=
{
r
:
0
,
l
:
0
}
function
dance
(
r
,
l
,
p
)
{
setInterval
(()
=>
{
img
.
value
.
x
=
obj
.
r
*
p
img
.
value
.
y
=
obj
.
l
*
p
if
(
obj
.
r
<
r
)
{
obj
.
r
++
if
(
obj
.
r
===
r
)
{
obj
.
l
++
obj
.
r
=
0
if
(
obj
.
l
===
l
)
{
obj
.
l
=
0
}
}
}
},
100
)
}
onMounted
(()
=>
{
dance
(
danceInfo
.
value
.
r
,
danceInfo
.
value
.
l
,
-
768
)
})
</
script
>
<
style
scoped
>
.imgDiv
{
height
:
768px
;
width
:
768px
;
background-repeat
:
no-repeat
;
transform
:
scale
(
0.1
)
translate
(
-420%
,
-420%
);
}
</
style
>
\ No newline at end of file
src/components/searchForm.vue
浏览文件 @
27d1de12
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
:style=
"
{ color: type === 'playlist' ? '#F56C6C' : '#79bbff' }"
:style=
"
{ color: type === 'playlist' ? '#F56C6C' : '#79bbff' }"
>
>
<span>
{{
alertInfo
[
type
]
}}
</span>
<span>
{{
alertInfo
[
type
]
}}
</span>
<img
height=
"100%"
src=
"sss"
/>
</el-row>
</el-row>
<el-button
@
click=
"runSearch"
type=
"primary"
style=
"width: 100%"
<el-button
@
click=
"runSearch"
type=
"primary"
style=
"width: 100%"
>
搜索
</el-button
>
搜索
</el-button
...
...
src/components/songList.vue
浏览文件 @
27d1de12
...
@@ -6,8 +6,10 @@
...
@@ -6,8 +6,10 @@
</div>
</div>
<el-tree
node-key=
"id"
:default-expanded-keys=
"['2']"
:data=
"data"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
/>
<el-tree
node-key=
"id"
:default-expanded-keys=
"['2']"
:data=
"data"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
/>
<DancePNG
/>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
DancePNG
from
"
./dancePNG.vue
"
import
bus
from
"
./../utils/bus.js
"
;
import
bus
from
"
./../utils/bus.js
"
;
interface
Tree
{
interface
Tree
{
label
:
string
;
label
:
string
;
...
@@ -103,5 +105,4 @@
...
@@ -103,5 +105,4 @@
children
:
"
children
"
,
children
:
"
children
"
,
label
:
"
label
"
,
label
:
"
label
"
,
};
};
</
script
>
</
script
>
\ No newline at end of file
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录