Commit b142e672 by zhangyongfeng

style

parent ec3e1983
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div id="tags"> <div id="tags">
<ul v-for="item in datas" :key="item.key"> <ul v-for="item in datas" :key="item.key">
<li> <li>
<a href="javascript:void(0);" :style="{ color: '#fff' }"> <a href="javascript:void(0);" :style="style(item)">
{{ item.key }} {{ item.key }}
</a> </a>
</li> </li>
...@@ -115,6 +115,13 @@ export default { ...@@ -115,6 +115,13 @@ export default {
this.startTagCanvas(); this.startTagCanvas();
}, },
methods: { methods: {
style(item) {
const style = { color: '#fff' };
if (this.allresult.includes(item.key)) {
style.color = 'yellow';
}
return style;
},
speed() { speed() {
return [0.1 * Math.random() + 0.01, -(0.1 * Math.random() + 0.01)]; return [0.1 * Math.random() + 0.01, -(0.1 * Math.random() + 0.01)];
}, },
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.el-button + .el-button { .el-button + .el-button {
margin-top: 10px; margin-top: 20px;
margin-left: 0px; margin-left: 0px;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment