@fastkit/vui 0.16.38 → 0.16.39

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.
package/dist/vui.mjs CHANGED
@@ -22,7 +22,7 @@ import { colorSchemeProps, useColorClasses, useScopeColorClass, toScopeColorClas
22
22
  export * from '@fastkit/vue-color-scheme';
23
23
  import { createFormControlSettings, useFormControl, useParentFormNode, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, createFormSelectorSettings, createFormControlProps, useFormSelectorControl, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm, installVueFormPlugin } from '@fastkit/vue-form-control';
24
24
  export * from '@fastkit/vue-form-control';
25
- import { getDocumentScroller, useVScrollerRef, VScroller } from '@fastkit/vue-scroller';
25
+ import { getDocumentScroller, VScroller } from '@fastkit/vue-scroller';
26
26
  export * from '@fastkit/vue-scroller';
27
27
  import { defineMenuComponent, defineDialogComponent, createStackActionProps, useStackAction, defineSnackbarComponent, createStackableDefine, useStackControl, VDynamicStacks, BUILTIN_ACTION_HANDLERS, installVueStackPlugin } from '@fastkit/vue-stack';
28
28
  export * from '@fastkit/vue-stack';
@@ -1786,8 +1786,8 @@ var VPagination = defineComponent({
1786
1786
  } else {
1787
1787
  number = false;
1788
1788
  const isPrev = source === "prev";
1789
- const ammount = isPrev ? -1 : 1;
1790
- page = currentPage + ammount;
1789
+ const amount = isPrev ? -1 : 1;
1790
+ page = currentPage + amount;
1791
1791
  active = false;
1792
1792
  disabled = page < 1 || page > length;
1793
1793
  }
@@ -3410,7 +3410,7 @@ var VTabs = defineComponent({
3410
3410
  setup(props11, ctx) {
3411
3411
  const vui = useVui();
3412
3412
  const internalValueRef = ref(null);
3413
- const scrollerRef = useVScrollerRef();
3413
+ const ScrollerRef = VScroller.$ref();
3414
3414
  const elRef = ref(null);
3415
3415
  let scrollResult;
3416
3416
  const tabRefs = ref([]);
@@ -3531,7 +3531,7 @@ var VTabs = defineComponent({
3531
3531
  const $tab = tab.$el;
3532
3532
  if (!$tab)
3533
3533
  return;
3534
- const scroller = scrollerRef.value;
3534
+ const scroller = ScrollerRef.instance;
3535
3535
  if (!scroller)
3536
3536
  return;
3537
3537
  const container = scroller.scroller.element();
@@ -3555,16 +3555,16 @@ var VTabs = defineComponent({
3555
3555
  hiddenLeft += autoScrollOffset;
3556
3556
  if (hiddenRight > 0)
3557
3557
  hiddenRight += autoScrollOffset;
3558
- let scrollAmmount = 0;
3558
+ let scrollAmount = 0;
3559
3559
  if (hiddenRight > 0) {
3560
- scrollAmmount = hiddenRight;
3560
+ scrollAmount = hiddenRight;
3561
3561
  }
3562
3562
  if (hiddenLeft > 0) {
3563
- scrollAmmount = -hiddenLeft;
3563
+ scrollAmount = -hiddenLeft;
3564
3564
  }
3565
- if (Math.abs(scrollAmmount) > 0) {
3565
+ if (Math.abs(scrollAmount) > 0) {
3566
3566
  cancelScroll();
3567
- scrollResult = scroller.scroller.by(scrollAmmount, 0, {
3567
+ scrollResult = scroller.scroller.by(scrollAmount, 0, {
3568
3568
  duration: 150
3569
3569
  });
3570
3570
  }
@@ -3638,11 +3638,10 @@ var VTabs = defineComponent({
3638
3638
  return createVNode("div", {
3639
3639
  "class": ["v-tabs", classes.value],
3640
3640
  "ref": elRef
3641
- }, [createVNode(VScroller, {
3641
+ }, [createVNode(ScrollerRef, {
3642
3642
  "class": "v-tabs__scroller",
3643
3643
  "containerClass": "v-tabs__scroller__container",
3644
- "guide": true,
3645
- "ref": scrollerRef
3644
+ "guide": true
3646
3645
  }, {
3647
3646
  default: () => [createVNode("div", {
3648
3647
  "class": "v-tabs__content"