docs(steps): fix vertical

This commit is contained in:
07akioni 2021-06-07 15:40:56 +08:00
parent 2e8a58f74f
commit 72bee40af4
2 changed files with 4 additions and 4 deletions

View File

@ -65,12 +65,12 @@ export default {
methods: {
next () {
if (this.current === null) this.current = 1
else if (this.current >= 4) this.current = null
else if (this.current >= 5) this.current = null
else this.current++
},
prev () {
if (this.current === 0) this.current = null
else if (this.current === null) this.current = 4
else if (this.current === null) this.current = 5
else this.current--
}
}

View File

@ -65,12 +65,12 @@ export default {
methods: {
next () {
if (this.current === null) this.current = 1
else if (this.current >= 4) this.current = null
else if (this.current >= 5) this.current = null
else this.current++
},
prev () {
if (this.current === 0) this.current = null
else if (this.current === null) this.current = 4
else if (this.current === null) this.current = 5
else this.current--
}
}