erp-blocks 1.1.5 → 1.1.6
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,4 +1,4 @@
|
|
|
1
|
-
import type { TableProps } from '@nuxt/ui';
|
|
1
|
+
import type { TableProps, TableSlots } from '@nuxt/ui';
|
|
2
2
|
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<({
|
|
4
4
|
tableProps: TableProps<T>;
|
|
@@ -11,9 +11,7 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
11
11
|
}> & import("vue").PublicProps;
|
|
12
12
|
expose: (exposed: {}) => void;
|
|
13
13
|
attrs: any;
|
|
14
|
-
slots:
|
|
15
|
-
[x: number]: ((props: any) => any) | undefined;
|
|
16
|
-
};
|
|
14
|
+
slots: TableSlots<T>;
|
|
17
15
|
emit: (evt: "update:page", value: number | undefined) => void;
|
|
18
16
|
}>) => import("vue").VNode & {
|
|
19
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -5,6 +5,7 @@ defineProps({
|
|
|
5
5
|
itemsPerPage: { type: Number, required: false, default: 5 }
|
|
6
6
|
});
|
|
7
7
|
const page = defineModel("page", { type: Number });
|
|
8
|
+
defineSlots();
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
11
|
<template>
|
|
@@ -13,24 +14,17 @@ const page = defineModel("page", { type: Number });
|
|
|
13
14
|
v-bind="tableProps"
|
|
14
15
|
class="flex-1 border border-default rounded-lg grow"
|
|
15
16
|
>
|
|
16
|
-
<template
|
|
17
|
-
v-
|
|
18
|
-
#[name]="slotProps"
|
|
19
|
-
>
|
|
20
|
-
<slot
|
|
21
|
-
:name="name"
|
|
22
|
-
v-bind="slotProps"
|
|
23
|
-
/>
|
|
17
|
+
<template #default="slotProps">
|
|
18
|
+
<slot v-bind="slotProps" />
|
|
24
19
|
</template>
|
|
25
20
|
</UTable>
|
|
26
21
|
<div
|
|
27
22
|
v-if="tableProps.data && totalRows"
|
|
28
23
|
class="flex items-center justify-between"
|
|
29
24
|
>
|
|
30
|
-
<span
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{{ tableProps.data?.length || itemsPerPage }} of {{ totalRows || itemsPerPage }} rows
|
|
25
|
+
<span class="text-base text-dimmed">
|
|
26
|
+
{{ tableProps.data?.length || itemsPerPage }} of
|
|
27
|
+
{{ totalRows || itemsPerPage }} rows
|
|
34
28
|
</span>
|
|
35
29
|
<UPagination
|
|
36
30
|
v-model:page="page"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableProps } from '@nuxt/ui';
|
|
1
|
+
import type { TableProps, TableSlots } from '@nuxt/ui';
|
|
2
2
|
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: __VLS_PrettifyLocal<({
|
|
4
4
|
tableProps: TableProps<T>;
|
|
@@ -11,9 +11,7 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
11
11
|
}> & import("vue").PublicProps;
|
|
12
12
|
expose: (exposed: {}) => void;
|
|
13
13
|
attrs: any;
|
|
14
|
-
slots:
|
|
15
|
-
[x: number]: ((props: any) => any) | undefined;
|
|
16
|
-
};
|
|
14
|
+
slots: TableSlots<T>;
|
|
17
15
|
emit: (evt: "update:page", value: number | undefined) => void;
|
|
18
16
|
}>) => import("vue").VNode & {
|
|
19
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|