@finema/core 1.4.196 → 1.4.197
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex flex-col items-center justify-center py-6 text-gray-
|
|
3
|
-
<Icon :name="icon" class="
|
|
4
|
-
<p class="mt-
|
|
2
|
+
<div class="flex flex-col items-center justify-center py-6 text-gray-400">
|
|
3
|
+
<Icon :name="icon" class="text-[100px]" />
|
|
4
|
+
<p class="mt-4" v-html="message" />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
<script lang="ts" setup>
|
|
@@ -12,7 +12,7 @@ withDefaults(
|
|
|
12
12
|
}>(),
|
|
13
13
|
{
|
|
14
14
|
message: 'ไม่พบข้อมูล!',
|
|
15
|
-
icon: 'ph:table',
|
|
15
|
+
icon: 'ph:table-thin',
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
</script>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { DeepPartial } from '#ui/types'
|
|
2
|
+
import type * as config from '#ui/ui.config'
|
|
3
|
+
|
|
4
|
+
export const table: DeepPartial<(typeof config)['table']> = {
|
|
5
|
+
wrapper: 'relative overflow-x-auto bg-white rounded-lg',
|
|
6
|
+
base: 'min-w-full table-fixed',
|
|
7
|
+
divide: 'divide-y divide-y-2 divide-gray-300 dark:divide-gray-700',
|
|
8
|
+
thead: '',
|
|
9
|
+
tbody: 'divide-y divide-gray-200 dark:divide-gray-800',
|
|
10
|
+
tr: {
|
|
11
|
+
base: 'even:bg-gray-50',
|
|
12
|
+
selected: 'bg-gray-50 dark:bg-gray-800/50',
|
|
13
|
+
active: 'hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer',
|
|
14
|
+
},
|
|
15
|
+
th: {
|
|
16
|
+
base: 'text-left rtl:text-right',
|
|
17
|
+
padding: 'px-3 py-3.5',
|
|
18
|
+
color: 'text-gray-700 dark:text-white',
|
|
19
|
+
font: 'font-normal',
|
|
20
|
+
size: 'text-sm',
|
|
21
|
+
},
|
|
22
|
+
td: {
|
|
23
|
+
base: 'whitespace-nowrap',
|
|
24
|
+
padding: 'px-3 py-4',
|
|
25
|
+
color: 'text-gray-500 dark:text-gray-400',
|
|
26
|
+
font: '',
|
|
27
|
+
size: 'text-sm',
|
|
28
|
+
},
|
|
29
|
+
progress: {
|
|
30
|
+
wrapper: 'absolute inset-x-0 p-0',
|
|
31
|
+
},
|
|
32
|
+
default: {
|
|
33
|
+
sortButton: {
|
|
34
|
+
icon: 'i-heroicons-arrows-up-down-20-solid',
|
|
35
|
+
trailing: true,
|
|
36
|
+
square: true,
|
|
37
|
+
color: 'gray',
|
|
38
|
+
variant: 'ghost',
|
|
39
|
+
class: '-m-1.5 text-gray-700 font-normal',
|
|
40
|
+
},
|
|
41
|
+
loadingState: {
|
|
42
|
+
label: 'กำลังโหลด...',
|
|
43
|
+
},
|
|
44
|
+
emptyState: {
|
|
45
|
+
label: 'ไม่พบข้อมูล',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
}
|