adminforth 2.4.0-next.156 → 2.4.0-next.158

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.
@@ -17,13 +17,13 @@
17
17
  </thead>
18
18
  <tbody>
19
19
  <SkeleteLoader
20
- v-if="isLoading"
20
+ v-if="isLoading || props.isLoading"
21
21
  :rows="pageSize"
22
22
  :columns="columns.length"
23
23
  :row-heights="rowHeights"
24
24
  :column-widths="columnWidths"
25
25
  />
26
- <tr v-else-if="!isLoading && dataPage.length === 0" class="afcl-table-empty-body">
26
+ <tr v-else-if="!isLoading && !props.isLoading && dataPage.length === 0" class="afcl-table-empty-body">
27
27
  <td :colspan="columns.length" class="px-6 py-12 text-center">
28
28
  <div class="flex flex-col items-center justify-center text-lightTableText dark:text-darkTableText">
29
29
  <IconTableRowOutline class="w-10 h-10 mb-4 text-gray-400 dark:text-gray-500" />
@@ -32,7 +32,7 @@
32
32
  </td>
33
33
  </tr>
34
34
  <tr
35
- v-else="!isLoading"
35
+ v-else="!isLoading && !props.isLoading"
36
36
  v-for="(item, index) in dataPage"
37
37
  :key="`row-${index}`"
38
38
  ref="rowRefs"
@@ -49,7 +49,7 @@
49
49
  :item="item" :column="column"
50
50
  >
51
51
  </slot>
52
- <span v-else-if="!isLoading" >
52
+ <span v-else-if="!isLoading || props.isLoading" >
53
53
  {{ item[column.fieldName] }}
54
54
  </span>
55
55
  <div v-else>
@@ -142,9 +142,10 @@
142
142
  }[] | ((params: { offset: number, limit: number }) => Promise<{data: {[key: string]: any}[], total: number}>),
143
143
  evenHighlights?: boolean,
144
144
  pageSize?: number,
145
+ isLoading?: boolean,
145
146
  }>(), {
146
147
  evenHighlights: true,
147
- pageSize: 10,
148
+ pageSize: 5,
148
149
  }
149
150
  );
150
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.156",
3
+ "version": "2.4.0-next.158",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",