mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
docs(steps): fix vertical
This commit is contained in:
parent
2e8a58f74f
commit
72bee40af4
@ -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--
|
||||
}
|
||||
}
|
||||
|
@ -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--
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user