mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
testtt
This commit is contained in:
parent
2749098b6f
commit
9fe938f390
2 changed files with 10 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.1-rc.9.7",
|
||||
"version": "12.119.0-calc.1-rc.9.8",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -63,12 +63,11 @@ const props = defineProps<{
|
|||
|
||||
const tabs = ['featured', 'users', 'search'];
|
||||
|
||||
let tab = $computed({
|
||||
get: () => tabs[0],
|
||||
set: (x) => {
|
||||
syncSlide(tabs.indexOf(x));
|
||||
},
|
||||
});
|
||||
const emit = defineEmits<{
|
||||
(ev: 'update:tab', key: string);
|
||||
}>();
|
||||
|
||||
let tab = $ref('featured');
|
||||
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
||||
let searchQuery = $ref(null);
|
||||
let searchOrigin = $ref('combined');
|
||||
|
@ -115,7 +114,10 @@ function setSwiperRef(swiper) {
|
|||
}
|
||||
|
||||
function onSlideChange() {
|
||||
tab = tabs[swiperRef.activeIndex + 1];
|
||||
// tab = tabs[swiperRef.activeIndex];
|
||||
let theTab = tabs[swiperRef.activeIndex];
|
||||
console.log(theTab);
|
||||
emit('update:tab', theTab);
|
||||
}
|
||||
|
||||
function syncSlide(index) {
|
||||
|
|
Loading…
Reference in a new issue