openatc-components 0.2.62 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.62",
3
+ "version": "0.2.64",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -48,7 +48,7 @@
48
48
  <div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
49
49
  </div>
50
50
  </div>
51
- <div v-show="(this.curtime>0 && cycle && cycle>0 && this.isControl) || (this.curtime>0 && newCycle && newCycle>0 && this.isControl)">
51
+ <div v-show="(cycle && cycle>0 && this.isControl) || (newCycle && newCycle>0 && this.isControl)">
52
52
  <div class="curTimeDiv" :style="{'left':paddingLeft }">{{ timeNumDevide }}</div>
53
53
  <div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
54
54
  </div>
@@ -213,7 +213,7 @@ export default {
213
213
  watch: {
214
214
  controlPhase: {
215
215
  handler: function (val, oldVal) {
216
- if (val && val.curTime) {
216
+ if ((val && val.curTime) || val.curTime === 0) {
217
217
  this.curtime = val.curTime
218
218
  if (val.control === 4 || val.control === 16 || val.control === 22) {
219
219
  this.isControl = false
@@ -242,7 +242,7 @@ export default {
242
242
  }
243
243
  this.handleBarrierHeight()
244
244
  }
245
- if (val && val.curTime) {
245
+ if ((val && val.curTime) || val.curTime === 0) {
246
246
  this.curtime = val.curTime
247
247
  if (val.control === 4 || val.control === 16 || val.control === 22) {
248
248
  this.isControl = false
@@ -298,7 +298,7 @@ export default {
298
298
  dirListSetTheme (list) {
299
299
  let dirArr = []
300
300
  let color = getTheme() === 'light' ? '#606266' : '#F1F3F4'
301
- let pedColor = getTheme() === 'light' ? '#606266' : 'rgba(48,49,51,0.6)'
301
+ let pedColor = getTheme() === 'light' ? '#606266' : 'rgba(255, 255, 255, 0.6)'
302
302
  for (let rec of list) {
303
303
  let recd = {
304
304
  ...rec,