useSwiper
This commit is contained in:
parent
95bb87b29f
commit
42a7c07cee
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.1-rc.9.4",
|
||||
"version": "12.119.0-calc.1-rc.9.5",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { computed, watch } from 'vue';
|
||||
import { Virtual } from 'swiper';
|
||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||
import { Swiper, SwiperSlide, useSwiper } from 'swiper/vue';
|
||||
import XFeatured from './explore.featured.vue';
|
||||
import XUsers from './explore.users.vue';
|
||||
import type MkFolder from '@/components/MkFolder.vue';
|
||||
|
@ -115,8 +115,7 @@ function setSwiperRef(swiper) {
|
|||
}
|
||||
|
||||
function onSlideChange() {
|
||||
tab = tabs[swiperRef.activeIndex];
|
||||
console.log(tab);
|
||||
tab = tabs[useSwiper().value.activeIndex];
|
||||
console.log(tabs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue