@finema/core 1.4.189 → 1.4.191
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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/FlexDeck/Base.vue +10 -0
- package/dist/runtime/components/FlexDeck/types.d.ts +1 -0
- package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/index.vue +5 -0
- package/dist/runtime/components/Table/Base.vue +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<div v-if="!isHideCaption || !isHideBottomPagination" class="mb-4 text-gray-500">
|
|
3
|
+
<span class="font-bold">ผลลัพธ์ทั้งหมด:</span>
|
|
4
|
+
จำนวน
|
|
5
|
+
<span class="font-bold">{{ pageOptions?.totalCount || 0 }}</span>
|
|
6
|
+
รายการ
|
|
7
|
+
</div>
|
|
2
8
|
<slot v-if="!status.isLoading && rawData.length === 0" name="empty-state">
|
|
3
9
|
<div class="min-h-60">
|
|
4
10
|
<p class="text-center text-sm italic">ไม่พบข้อมูล!</p>
|
|
@@ -82,6 +88,10 @@ const props = defineProps({
|
|
|
82
88
|
type: Boolean as PropType<IFlexDeckOptions['isEnableInfiniteScroll']>,
|
|
83
89
|
default: false,
|
|
84
90
|
},
|
|
91
|
+
isHideCaption: {
|
|
92
|
+
type: Boolean as PropType<IFlexDeckOptions['isHideCaption']>,
|
|
93
|
+
default: false,
|
|
94
|
+
},
|
|
85
95
|
containerClass: { type: [String, Array, Object] },
|
|
86
96
|
})
|
|
87
97
|
|
|
@@ -8,6 +8,7 @@ export interface IFlexDeckOptions<T = object> {
|
|
|
8
8
|
isEnabledSearch?: boolean;
|
|
9
9
|
searchPlaceholder?: string;
|
|
10
10
|
isPreventRouteChange: boolean;
|
|
11
|
+
isHideCaption?: boolean;
|
|
11
12
|
isHideBottomPagination?: boolean;
|
|
12
13
|
isHideTopPagination?: boolean;
|
|
13
14
|
isSimplePagination?: boolean;
|
|
@@ -145,6 +145,11 @@ const handleOpenFile = () => {
|
|
|
145
145
|
|
|
146
146
|
const handleDeleteFile = (index: number) => {
|
|
147
147
|
selectedFiles.value.splice(index, 1)
|
|
148
|
+
|
|
149
|
+
const updatedValue = [...selectedFiles.value]
|
|
150
|
+
|
|
151
|
+
updatedValue.splice(index, 1)
|
|
152
|
+
selectedFiles.value = updatedValue
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
const handleDeleteFileView = (index: number) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="!isHideCaption" class="mb-4 text-gray-500">
|
|
3
|
-
<span class="font-bold"
|
|
2
|
+
<div v-if="!isHideCaption || !isHideBottomPagination" class="mb-4 text-gray-500">
|
|
3
|
+
<span class="font-bold">ผลลัพธ์ทั้งหมด:</span>
|
|
4
4
|
จำนวน
|
|
5
5
|
<span class="font-bold">{{ pageOptions?.totalCount || 0 }}</span>
|
|
6
6
|
รายการ
|