style
Showing
2 changed files
with
9 additions
and
2 deletions
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | <div id="tags"> | 13 | <div id="tags"> |
14 | <ul v-for="item in datas" :key="item.key"> | 14 | <ul v-for="item in datas" :key="item.key"> |
15 | <li> | 15 | <li> |
16 | <a href="javascript:void(0);" :style="{ color: '#fff' }"> | 16 | <a href="javascript:void(0);" :style="style(item)"> |
17 | {{ item.key }} | 17 | {{ item.key }} |
18 | </a> | 18 | </a> |
19 | </li> | 19 | </li> |
... | @@ -115,6 +115,13 @@ export default { | ... | @@ -115,6 +115,13 @@ export default { |
115 | this.startTagCanvas(); | 115 | this.startTagCanvas(); |
116 | }, | 116 | }, |
117 | methods: { | 117 | methods: { |
118 | style(item) { | ||
119 | const style = { color: '#fff' }; | ||
120 | if (this.allresult.includes(item.key)) { | ||
121 | style.color = 'yellow'; | ||
122 | } | ||
123 | return style; | ||
124 | }, | ||
118 | speed() { | 125 | speed() { |
119 | return [0.1 * Math.random() + 0.01, -(0.1 * Math.random() + 0.01)]; | 126 | return [0.1 * Math.random() + 0.01, -(0.1 * Math.random() + 0.01)]; |
120 | }, | 127 | }, | ... | ... |
... | @@ -198,7 +198,7 @@ export default { | ... | @@ -198,7 +198,7 @@ export default { |
198 | align-items: center; | 198 | align-items: center; |
199 | justify-content: center; | 199 | justify-content: center; |
200 | .el-button + .el-button { | 200 | .el-button + .el-button { |
201 | margin-top: 10px; | 201 | margin-top: 20px; |
202 | margin-left: 0px; | 202 | margin-left: 0px; |
203 | } | 203 | } |
204 | } | 204 | } | ... | ... |
-
Please register or sign in to post a comment