vxe-table 3.25.0-beta.4 → 3.25.0-beta.5

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.
@@ -26,7 +26,7 @@ import keyboardMixin from '../module/keyboard/mixin'
26
26
  import validatorMixin from '../module/validator/mixin'
27
27
  import customMixin from '../module/custom/mixin'
28
28
 
29
- import type { VxeTabsConstructor, VxeTabsPrivateMethods, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods } from 'vxe-pc-ui'
29
+ import type { VxeTabsConstructor, VxeTabsPrivateMethods, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods, VxeUseSizeComputed, VxeUseVScrollbarComputed, VxeUseInitVScrollbarComputed } from 'vxe-pc-ui'
30
30
  import type { VxeTableConstructor, VxeTablePrivateMethods, VxeTablePropTypes, TableInternalData, TableReactData, VxeTableDefines } from '../../../types'
31
31
 
32
32
  const { warnLog, errLog } = createComponentLog('table')
@@ -624,18 +624,18 @@ function renderVirtualBody (h: CreateElement, $xeTable: VxeTableConstructor & Vx
624
624
  ref: 'refTrackXElem',
625
625
  class: 'vxe-scrollbar--track-x',
626
626
  on: {
627
- click: ($xeTable as any).clickTrackXEvent
627
+ click: $xeTable.clickTrackXEvent
628
628
  }
629
629
  }, [
630
630
  h('div', {
631
631
  ref: 'refThumbXElem',
632
632
  class: 'vxe-scrollbar--thumb-x',
633
633
  on: {
634
- pointerdown: ($xeTable as any).pointerdownThumbXEvent,
635
- pointermove: ($xeTable as any).pointermoveThumbXEvent,
636
- pointerup: ($xeTable as any).cleatPointerThumbEvent,
637
- pointercancel: ($xeTable as any).cleatPointerThumbEvent,
638
- lostpointercapture: ($xeTable as any).cleatPointerThumbEvent
634
+ pointerdown: $xeTable.pointerdownThumbXEvent,
635
+ pointermove: $xeTable.pointermoveThumbXEvent,
636
+ pointerup: $xeTable.cleatPointerThumbEvent,
637
+ pointercancel: $xeTable.cleatPointerThumbEvent,
638
+ lostpointercapture: $xeTable.cleatPointerThumbEvent
639
639
  }
640
640
  })
641
641
  ]),
@@ -645,18 +645,18 @@ function renderVirtualBody (h: CreateElement, $xeTable: VxeTableConstructor & Vx
645
645
  ref: 'refTrackYElem',
646
646
  class: 'vxe-scrollbar--track-y',
647
647
  on: {
648
- click: ($xeTable as any).clickTrackYEvent
648
+ click: $xeTable.clickTrackYEvent
649
649
  }
650
650
  }, [
651
651
  h('div', {
652
652
  ref: 'refThumbYElem',
653
653
  class: 'vxe-scrollbar--thumb-y',
654
654
  on: {
655
- pointerdown: ($xeTable as any).pointerdownThumbYEvent,
656
- pointermove: ($xeTable as any).pointermoveThumbYEvent,
657
- pointerup: ($xeTable as any).cleatPointerThumbEvent,
658
- pointercancel: ($xeTable as any).cleatPointerThumbEvent,
659
- lostpointercapture: ($xeTable as any).cleatPointerThumbEvent
655
+ pointerdown: $xeTable.pointerdownThumbYEvent,
656
+ pointermove: $xeTable.pointermoveThumbYEvent,
657
+ pointerup: $xeTable.cleatPointerThumbEvent,
658
+ pointercancel: $xeTable.cleatPointerThumbEvent,
659
+ lostpointercapture: $xeTable.cleatPointerThumbEvent
660
660
  }
661
661
  })
662
662
  ])
@@ -668,6 +668,8 @@ export default {
668
668
  name: 'VxeTable',
669
669
  mixins: [
670
670
  globalMixins.sizeMixin,
671
+ globalMixins.vScrollbarMixin,
672
+ globalMixins.initVScrollbarMixin,
671
673
  filterMixin,
672
674
  menuMixin,
673
675
  editMixin,
@@ -723,7 +725,7 @@ export default {
723
725
  }
724
726
  },
725
727
  computed: {
726
- ...({} as {
728
+ ...({} as VxeUseSizeComputed & VxeUseVScrollbarComputed & VxeUseInitVScrollbarComputed & {
727
729
  $xeModal(): (VxeModalConstructor & VxeModalMethods)| null
728
730
  $xeTabs(): (VxeTabsConstructor & VxeTabsPrivateMethods) | null
729
731
  }),
@@ -2532,7 +2534,7 @@ export default {
2532
2534
  footer: slots.footerTooltip || slots['footer-tooltip']
2533
2535
  }
2534
2536
  const currTooltipSlot = tooltipStore.visible && tooltipStore.type ? tipSlots[tooltipStore.type] : null
2535
- const tableStyle = ($xeTable as any).computeTableStyle as VxeComponentStyleType
2537
+ const tableStyle = $xeTable.computeTableStyle
2536
2538
  const rowDragOpts = $xeTable.computeRowDragOpts
2537
2539
  const tableTipConfig = $xeTable.computeTableTipConfig
2538
2540
  const validTipConfig = $xeTable.computeValidTipConfig