Commit b142e672 by zhangyongfeng

style

parent ec3e1983
......@@ -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)];
},
......
......@@ -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;
}
}
......
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