quasar-factory-lib 0.1.19 → 0.1.20

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/package.json CHANGED
@@ -98,6 +98,6 @@
98
98
  "release": "standard-version"
99
99
  },
100
100
  "type": "module",
101
- "version": "0.1.19",
101
+ "version": "0.1.20",
102
102
  "author": ""
103
103
  }
@@ -1,7 +1,7 @@
1
1
  <template lang="">
2
2
  <div>
3
3
  <q-table
4
- v-show="!showSkeleton"
4
+ v-if="!showSkeleton && rowsData.length"
5
5
  ref="myTable"
6
6
  v-model:selected="selected"
7
7
  v-model:pagination="pagination"
@@ -25,9 +25,13 @@
25
25
  :selected-rows-label="getSelectedString"
26
26
  :loading="loading"
27
27
  virtual-scroll
28
+ @virtual-scroll="onVirtualScroll"
29
+ :virtual-scroll-item-size="48"
30
+ :virtual-scroll-slice-ratio-before="0"
28
31
  @update:selected="(details) => {
29
32
  $emit('onUpdateSelected', details)
30
33
  }"
34
+
31
35
  >
32
36
  <template #top-right="props">
33
37
  <q-separator />
@@ -558,7 +562,10 @@ export default defineComponent({
558
562
  elementToScroll.removeEventListener('scroll', fnAddScroll)
559
563
  elementToScroll.addEventListener('scroll', fnAddScroll)
560
564
  })
561
- }
565
+ },
566
+ onVirtualScroll (args) {
567
+ console.log('args', args)
568
+ },
562
569
  }
563
570
  })
564
571
  </script>