mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix swiper document (#2516)
This commit is contained in:
@@ -105,13 +105,12 @@ export default {
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
current: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
current: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
onChange(index) {
|
onChange(index) {
|
||||||
this.current = index;
|
this.current = index;
|
||||||
}
|
}
|
||||||
|
@@ -105,13 +105,12 @@ export default {
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
current: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
current: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
onChange(index) {
|
onChange(index) {
|
||||||
this.current = index;
|
this.current = index;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user