@finema/core 1.4.194 → 1.4.196
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
package/dist/module.mjs
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col items-center justify-center py-6 text-gray-300">
|
|
3
|
+
<Icon :name="icon" class="w-[42px]" />
|
|
4
|
+
<p class="mt-6" v-html="message" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
withDefaults(
|
|
9
|
+
defineProps<{
|
|
10
|
+
message: any
|
|
11
|
+
icon: string
|
|
12
|
+
}>(),
|
|
13
|
+
{
|
|
14
|
+
message: 'ไม่พบข้อมูล!',
|
|
15
|
+
icon: 'ph:table',
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
</script>
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
รายการ
|
|
7
7
|
</div>
|
|
8
8
|
<slot v-if="!status.isLoading && rawData.length === 0" name="empty-state">
|
|
9
|
-
<
|
|
10
|
-
<p class="text-center text-sm italic">ไม่พบข้อมูล!</p>
|
|
11
|
-
</div>
|
|
9
|
+
<Empty />
|
|
12
10
|
</slot>
|
|
13
11
|
|
|
14
12
|
<div
|
|
@@ -56,6 +54,7 @@ import { useElementVisibility } from '@vueuse/core'
|
|
|
56
54
|
import { StringHelper } from '#core/utils/StringHelper'
|
|
57
55
|
import { ref, useWatchTrue, watch } from '#imports'
|
|
58
56
|
import type { IFlexDeckOptions } from '#core/components/FlexDeck/types'
|
|
57
|
+
import Empty from '#core/components/Empty.vue'
|
|
59
58
|
|
|
60
59
|
const emits = defineEmits(['pageChange'])
|
|
61
60
|
|
|
@@ -5,22 +5,14 @@
|
|
|
5
5
|
<span class="font-bold">{{ pageOptions?.totalCount || 0 }}</span>
|
|
6
6
|
รายการ
|
|
7
7
|
</div>
|
|
8
|
-
<UTable
|
|
9
|
-
:loading="status.isLoading"
|
|
10
|
-
:columns="columns"
|
|
11
|
-
:rows="rawData"
|
|
12
|
-
:progress="null as unknown as any"
|
|
13
|
-
v-bind="$attrs"
|
|
14
|
-
>
|
|
8
|
+
<UTable :loading="status.isLoading" :columns="columns" :rows="rawData" v-bind="$attrs">
|
|
15
9
|
<template #loading-state>
|
|
16
10
|
<div class="flex h-60 items-center justify-center">
|
|
17
11
|
<Icon name="i-svg-spinners:180-ring-with-bg" class="text-primary size-8" />
|
|
18
12
|
</div>
|
|
19
13
|
</template>
|
|
20
14
|
<template #empty-state>
|
|
21
|
-
<
|
|
22
|
-
<span class="text-sm italic">ไม่พบข้อมูล!</span>
|
|
23
|
-
</div>
|
|
15
|
+
<Empty />
|
|
24
16
|
</template>
|
|
25
17
|
<template v-for="column in columns" #[`${column.key}-data`]="{ row }" :key="column.key">
|
|
26
18
|
<ColumnNumber
|
|
@@ -67,7 +59,7 @@
|
|
|
67
59
|
</template>
|
|
68
60
|
</UTable>
|
|
69
61
|
<div v-if="pageOptions" class="mt-4 flex justify-between px-3">
|
|
70
|
-
<p class="text-
|
|
62
|
+
<p class="text-sm text-gray-500">
|
|
71
63
|
ผลลัพธ์ {{ pageBetween }} ของ {{ totalCountWithComma }} รายการ
|
|
72
64
|
</p>
|
|
73
65
|
<UPagination
|
|
@@ -93,6 +85,7 @@ import { computed, type PropType } from 'vue'
|
|
|
93
85
|
import { StringHelper } from '#core/utils/StringHelper'
|
|
94
86
|
import { ref, watch } from '#imports'
|
|
95
87
|
import ColumnDateTime from '#core/components/Table/ColumnDateTime.vue'
|
|
88
|
+
import Empty from '#core/components/Empty.vue'
|
|
96
89
|
import ColumnDate from '#core/components/Table/ColumnDate.vue'
|
|
97
90
|
import ColumnText from '#core/components/Table/ColumnText.vue'
|
|
98
91
|
|