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: {
|
methods: {
|
||||||
next () {
|
next () {
|
||||||
if (this.current === null) this.current = 1
|
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++
|
else this.current++
|
||||||
},
|
},
|
||||||
prev () {
|
prev () {
|
||||||
if (this.current === 0) this.current = null
|
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--
|
else this.current--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,12 +65,12 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
next () {
|
next () {
|
||||||
if (this.current === null) this.current = 1
|
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++
|
else this.current++
|
||||||
},
|
},
|
||||||
prev () {
|
prev () {
|
||||||
if (this.current === 0) this.current = null
|
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--
|
else this.current--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user