testtt
This commit is contained in:
parent
ac0aa5c2c0
commit
30df6ae75b
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.1-rc.9.7",
|
"version": "12.119.0-calc.1-rc.9.8",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -63,12 +63,11 @@ const props = defineProps<{
|
||||||
|
|
||||||
const tabs = ['featured', 'users', 'search'];
|
const tabs = ['featured', 'users', 'search'];
|
||||||
|
|
||||||
let tab = $computed({
|
const emit = defineEmits<{
|
||||||
get: () => tabs[0],
|
(ev: 'update:tab', key: string);
|
||||||
set: (x) => {
|
}>();
|
||||||
syncSlide(tabs.indexOf(x));
|
|
||||||
},
|
let tab = $ref('featured');
|
||||||
});
|
|
||||||
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
||||||
let searchQuery = $ref(null);
|
let searchQuery = $ref(null);
|
||||||
let searchOrigin = $ref('combined');
|
let searchOrigin = $ref('combined');
|
||||||
|
@ -115,7 +114,10 @@ function setSwiperRef(swiper) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSlideChange() {
|
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) {
|
function syncSlide(index) {
|
||||||
|
|
Loading…
Reference in New Issue