Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
公瑾
/
lucky-draw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b142e672
authored
2019-12-27 09:14:07 +0800
by
zhangyongfeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style
1 parent
ec3e1983
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
src/App.vue
src/components/Tool.vue
src/App.vue
View file @
b142e67
...
...
@@ -13,7 +13,7 @@
<div
id=
"tags"
>
<ul
v-for=
"item in datas"
:key=
"item.key"
>
<li>
<a
href=
"javascript:void(0);"
:style=
"
{ color: '#fff' }
">
<a
href=
"javascript:void(0);"
:style=
"
style(item)
"
>
{{
item
.
key
}}
</a>
</li>
...
...
@@ -115,6 +115,13 @@ export default {
this
.
startTagCanvas
();
},
methods
:
{
style
(
item
)
{
const
style
=
{
color
:
'#fff'
};
if
(
this
.
allresult
.
includes
(
item
.
key
))
{
style
.
color
=
'yellow'
;
}
return
style
;
},
speed
()
{
return
[
0.1
*
Math
.
random
()
+
0.01
,
-
(
0.1
*
Math
.
random
()
+
0.01
)];
},
...
...
src/components/Tool.vue
View file @
b142e67
...
...
@@ -198,7 +198,7 @@ export default {
align-items
:
center
;
justify-content
:
center
;
.el-button
+
.el-button
{
margin-top
:
1
0px
;
margin-top
:
2
0px
;
margin-left
:
0px
;
}
}
...
...
Please
register
or
sign in
to post a comment