mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
lfg
This commit is contained in:
parent
06ed517e0c
commit
2854f1461c
2 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.118.1-calc.2-beta.2-rc.7",
|
"version": "12.118.1-calc.2-beta.2-rc.8",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -114,7 +114,11 @@ const rootEl = $ref<HTMLElement>();
|
||||||
let queue = $ref(0);
|
let queue = $ref(0);
|
||||||
const src = $computed({
|
const src = $computed({
|
||||||
get: () => defaultStore.reactiveState.tl.value.src,
|
get: () => defaultStore.reactiveState.tl.value.src,
|
||||||
set: (x) => saveSrc(x),
|
set: (x) => {
|
||||||
|
saveSrc(x);
|
||||||
|
console.log('set src', x);
|
||||||
|
syncSlide(x);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
watch($$(src), () => (queue = 0));
|
watch($$(src), () => (queue = 0));
|
||||||
|
@ -277,11 +281,11 @@ function setSwiperRef(swiper) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSlideChange() {
|
function onSlideChange() {
|
||||||
if (swiperRef) {
|
saveSrc(timelines[swiperRef.activeIndex]);
|
||||||
const index = swiperRef.activeIndex;
|
}
|
||||||
saveSrc(timelines[swiperRef.activeIndex]);
|
|
||||||
swiperRef.slideTo(index - 1, 0);
|
function syncSlide(index) {
|
||||||
}
|
swiperRef.slideTo(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue