lfg
This commit is contained in:
parent
c89d8c7ef7
commit
e3e95e86fa
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.7",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.8",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -114,7 +114,11 @@ const rootEl = $ref<HTMLElement>();
|
|||
let queue = $ref(0);
|
||||
const src = $computed({
|
||||
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));
|
||||
|
@ -277,11 +281,11 @@ function setSwiperRef(swiper) {
|
|||
}
|
||||
|
||||
function onSlideChange() {
|
||||
if (swiperRef) {
|
||||
const index = swiperRef.activeIndex;
|
||||
saveSrc(timelines[swiperRef.activeIndex]);
|
||||
swiperRef.slideTo(index - 1, 0);
|
||||
}
|
||||
saveSrc(timelines[swiperRef.activeIndex]);
|
||||
}
|
||||
|
||||
function syncSlide(index) {
|
||||
swiperRef.slideTo(index);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue