Browse Source

样式相关

master
aBin 5 years ago
parent
commit
ed5c237072
  1. 28
      src/components/RFID/RFID.vue

28
src/components/RFID/RFID.vue

@ -1,12 +1,7 @@
<template> <template>
<div class="flex-1 flex-column rfid"> <div class="flex-1 flex-column rfid">
<div :key="i + 1" v-for="(arr, i) in newArr" v-show="i === num"> <div :key="i + 1" v-for="(arr, i) in newArr" v-show="i === num">
<div <div :class="`list${index + 1} ${item.active ? 'active' : ''}`" :key="index" class="list" v-for="(item, index) in arr">
:class="`list${index + 1} ${item.active ? 'active' : ''}`"
:key="index"
class="list"
v-for="(item, index) in arr"
>
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</div> </div>
</div> </div>
@ -106,15 +101,15 @@ export default {
}, 1500); }, 1500);
}, },
// // //
changePage() { // changePage() {
setInterval(() => { // setInterval(() => {
this.num++; // this.num++;
if (this.num === this.newArr.length) { // if (this.num === this.newArr.length) {
this.num = 0; // this.num = 0;
} // }
}, 5000); // }, 5000);
}, // },
// //
setLight(step) { setLight(step) {
@ -136,6 +131,9 @@ export default {
} }
}); });
} else { } else {
// if (this.t) {
// clearInterval(this.t);
// }
this.setTime(); this.setTime();
} }
}, },

Loading…
Cancel
Save