@hostlink/nuxt-light 1.10.19 → 1.10.21

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.10.19"
4
+ "version": "1.10.21"
5
5
  }
@@ -9,6 +9,7 @@ import { toQuery } from '@hostlink/light';
9
9
  const minimized = defineModel<boolean>("minimized", { default: false })
10
10
  const maximized = defineModel<boolean>("maximized", { default: false })
11
11
 
12
+
12
13
  // extends QTableColumn
13
14
  export interface LTableColumn extends QTableColumn {
14
15
  searchable?: boolean,
@@ -520,6 +521,13 @@ const computedColumns = computed(() => {
520
521
  })
521
522
 
522
523
 
524
+ function requestServerInteraction() {
525
+ table.value && table.value.requestServerInteraction();
526
+ }
527
+
528
+ defineExpose({
529
+ requestServerInteraction
530
+ })
523
531
 
524
532
  </script>
525
533
 
@@ -540,6 +548,10 @@ const computedColumns = computed(() => {
540
548
  <q-table v-bind="attrs" :loading="loading" :rows="rows" ref="table" @request="onRequest" :columns="columns"
541
549
  v-model:pagination="pagination" :filter="filter" v-model:selected="localSelected">
542
550
 
551
+
552
+
553
+
554
+
543
555
  <template #header="props">
544
556
  <q-tr :props="props">
545
557
  <q-td v-if="selection != 'none'" auto-width>
@@ -667,6 +679,9 @@ const computedColumns = computed(() => {
667
679
  </q-tr>
668
680
  </template>
669
681
 
682
+ <template v-for="slot of ss" v-slot:[slot]="props">
683
+ <slot :name="slot" v-bind="props"></slot>
684
+ </template>
670
685
  </q-table>
671
686
  </l-card>
672
687
  </template>
@@ -17,13 +17,14 @@ const columns = model("User").columns({
17
17
  })
18
18
 
19
19
  const status = ref("0");
20
+
20
21
  </script>
21
22
 
22
23
  <template>
23
24
  <l-page>
24
25
  <l-tabs v-model="status">
25
26
  <l-tab label="Active" name="0">
26
- <l-table row-key="user_id" @request="onRequest" :columns="columns"
27
+ <l-table ref="table" row-key="user_id" @request="onRequest" :columns="columns"
27
28
  :actions="['view', 'edit', 'delete']"></l-table>
28
29
  </l-tab>
29
30
  <l-tab label="Inactive" name="1">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.19",
3
+ "version": "1.10.21",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",