Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
vitozyf committed Dec 27, 2019
1 parent ec3e198 commit b142e67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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)];
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default {
align-items: center;
justify-content: center;
.el-button + .el-button {
margin-top: 10px;
margin-top: 20px;
margin-left: 0px;
}
}
Expand Down

0 comments on commit b142e67

Please sign in to comment.