@teammodlr/ui-kit 2.0.23 → 2.0.25
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
|
@@ -92,6 +92,10 @@ export default defineComponent({
|
|
|
92
92
|
showTotal: {
|
|
93
93
|
type: Boolean,
|
|
94
94
|
default: true
|
|
95
|
+
},
|
|
96
|
+
loading: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false
|
|
95
99
|
}
|
|
96
100
|
},
|
|
97
101
|
emits: [
|
|
@@ -207,6 +211,9 @@ export default defineComponent({
|
|
|
207
211
|
}
|
|
208
212
|
|
|
209
213
|
function handlePageChange(page: number) {
|
|
214
|
+
if (props.loading) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
210
217
|
emit('update:page', page)
|
|
211
218
|
}
|
|
212
219
|
|
|
@@ -227,4 +234,4 @@ export default defineComponent({
|
|
|
227
234
|
}
|
|
228
235
|
}
|
|
229
236
|
})
|
|
230
|
-
</script>
|
|
237
|
+
</script>
|
|
@@ -33,11 +33,10 @@
|
|
|
33
33
|
</slot>
|
|
34
34
|
</TableCell>
|
|
35
35
|
</TableRow>
|
|
36
|
-
<tr v-if="items.length === 0"
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<slot name="loading" />
|
|
36
|
+
<tr v-if="items.length === 0">
|
|
37
|
+
<td :colspan="headers.length">
|
|
38
|
+
<slot name="empty" />
|
|
39
|
+
</td>
|
|
41
40
|
</tr>
|
|
42
41
|
</TableBody>
|
|
43
42
|
</table>
|