@varlet/ui 2.20.5 → 2.20.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -348,10 +348,6 @@ const __sfc__ = defineComponent({
348
348
  function stopAutoplay() {
349
349
  timer && clearTimeout(timer);
350
350
  }
351
- function setTrackTranslate(value) {
352
- trackTranslate.value = value;
353
- dispatchSwipeItems();
354
- }
355
351
  function handleTouchstart(event) {
356
352
  return __async(this, null, function* () {
357
353
  if (length.value <= 1 || !props2.touchable) {
@@ -373,7 +369,8 @@ const __sfc__ = defineComponent({
373
369
  return;
374
370
  }
375
371
  preventDefault(event);
376
- setTrackTranslate(trackTranslate.value + (vertical2 ? moveY.value : moveX.value));
372
+ trackTranslate.value += vertical2 ? moveY.value : moveX.value;
373
+ dispatchSwipeItems();
377
374
  }
378
375
  function handleTouchend() {
379
376
  if (!touching.value) {
@@ -389,7 +386,7 @@ const __sfc__ = defineComponent({
389
386
  const quickSwiping = performance.now() - startTime.value <= SWIPE_DELAY && offset >= SWIPE_OFFSET;
390
387
  const swipeIndex = quickSwiping ? positive ? getSwipeIndex(index.value + 1) : getSwipeIndex(index.value - 1) : getSwipeIndex();
391
388
  lockDuration.value = false;
392
- setTrackTranslate(swipeIndex * -size.value);
389
+ trackTranslate.value = swipeIndex * -size.value;
393
390
  const prevIndex = index.value;
394
391
  index.value = swipeIndexToIndex(swipeIndex);
395
392
  startAutoplay();
@@ -1,5 +1,6 @@
1
1
  var stdin_default = {
2
- "--bottom-navigation-item-active-background-color": "#272727"
2
+ "--bottom-navigation-item-active-background-color": "#272727",
3
+ "--bottom-navigation-item-inactive-color": "#BFBFBF"
3
4
  };
4
5
  export {
5
6
  stdin_default as default