@hostlink/nuxt-light 0.0.68 → 0.0.70

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": "0.0.68"
4
+ "version": "0.0.70"
5
5
  }
@@ -66,8 +66,10 @@ const props = defineProps({
66
66
  }
67
67
  })
68
68
 
69
+ const pagination = ref(props.pagination);
70
+
69
71
  if (props.rowsPerPageOptions[0] == 0) {
70
- props.pagination.rowsPerPage = 0;
72
+ pagination.value.rowsPerPage = 0;
71
73
  }
72
74
 
73
75
  //apply all aligns to the columns
@@ -124,8 +126,8 @@ if (props.actions.length > 0) {
124
126
 
125
127
  if (props.sortBy) {
126
128
  let [sortBy, descending] = props.sortBy.split(":");
127
- props.pagination.sortBy = sortBy;
128
- props.pagination.descending = descending == "desc";
129
+ pagination.value.sortBy = sortBy;
130
+ pagination.value.descending = descending == "desc";
129
131
  }
130
132
 
131
133
  const hasSearch = computed(() => {
@@ -279,11 +281,12 @@ const onRequest = async (p: any) => {
279
281
  modelName.value = allData.meta.name;
280
282
 
281
283
 
282
- props.pagination.rowsPerPage = p.pagination.rowsPerPage;
283
- props.pagination.page = p.pagination.page;
284
- props.pagination.sortBy = p.pagination.sortBy;
285
- props.pagination.descending = p.pagination.descending;
286
- props.pagination.rowsNumber = allData.meta.total;
284
+ //pagination.value.rowsPerPage = p.pagination.rowsPerPage;
285
+ pagination.value.page = p.pagination.page;
286
+ pagination.value.sortBy = p.pagination.sortBy;
287
+ pagination.value.descending = p.pagination.descending;
288
+ pagination.value.rowsNumber = allData.meta.total;
289
+
287
290
  loading.value = false;
288
291
  validateData()
289
292
 
@@ -395,7 +398,7 @@ const attrs = {
395
398
 
396
399
  <q-table v-bind="attrs" :row-key="rowKey" :loading="loading" :rows="rows" ref="table" @request="onRequest"
397
400
  :rows-per-page-label="$t(props.rowsPerPageLabel)" :columns="renderColumns"
398
- :rows-per-page-options="rowsPerPageOptions" :selection="selection" :pagination="pagination">
401
+ :rows-per-page-options="rowsPerPageOptions" :selection="selection" v-model:pagination="pagination">
399
402
 
400
403
 
401
404
  <template v-for="s in ss" v-slot:[s]="props">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",